| ImportPropertiesMaxAnalysisAgents Property |
Gets and sets maximum number of analysis agents allowed to run on this case.
Namespace:
Law.EdaIntegration.Import
Assembly:
Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.2
Syntax public int MaxAnalysisAgents { get; set; }
Property Value
Type:
Int32Exceptions Exception | Condition |
---|
EdaApiException | An exception is thrown if the max analysis agents value is not between 0 and 999 |
Remarks A value of 0 represents an unlimited number of agents.
Examples
This example demonstrates how to set and retrieve the MaxAnalysisAgents.
using Law.EdaIntegration;
class Sample
{
public static void Main()
{
string connectionString = @"Data Source=localhost;Initial Catalog=EDA_Management;Integrated Security=False;User ID=myUserId;Password=myPassword";
EdaIntegration edaIntegration = new EdaIntegration();
edaIntegration.InitializeEnvironment(connectionString);
Case edaCase = edaIntegration.Cases.OpenCaseByName("Case 1");
edaCase.Imports.Properties.MaxAnalysisAgents = 4;
edaCase.Imports.UpdateProperties();
Console.WriteLine("MaxAnalysisAgents: {0}", edaCase.Imports.Properties.MaxAnalysisAgents);
}
}
See Also