Click or drag to resize

IImportPropertiesMaxAnalysisAgents Property

Gets and sets maximum number of analysis agents allowed to run on this case.

Namespace:  EdaIntegrationContract.Import
Assembly:  EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 1.0
Syntax
C#
int MaxAnalysisAgents { get; set; }

Property Value

Type: Int32
Exceptions
ExceptionCondition
EdaApiExceptionAn 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.
C#
using Law.EdaIntegration;

class Sample
{
    public static void Main()
    {
        EdaIntegration edaIntegration = EdaIntegration.ConnectToExplore();
        Case edaCase = edaIntegration.Cases.OpenCaseByName("Case 1");

        // Set the MaxExportAgents value
        edaCase.Imports.Properties.MaxAnalysisAgents = 4;

        // Save the changes to the properties
        edaCase.Imports.UpdateProperties();

        // Get the value
        Console.WriteLine("MaxAnalysisAgents: {0}", edaCase.Imports.Properties.MaxAnalysisAgents);
    }
}
/*
This example produces the following results:

MaxAnalysisAgents: 4
 */
See Also