Click or drag to resize

ExportPropertiesMaxExportAgents Property

The maximum number of export agents allowed to run with this case.

Namespace:  Law.EdaIntegration.Exports
Assembly:  Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.3
Syntax
C#
public int MaxExportAgents { get; set; }

Property Value

Type: Int32
Exceptions
ExceptionCondition
EdaApiExceptionAn exception is thrown if the max export 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 MaxExportAgents.
C#
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");

        // Set the MaxExportAgents value
        edaCase.Exports.Properties.MaxExportAgents = 4;

        // Save the changes to the case
        edaCase.Exports.UpdateProperties();

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

MaxExportAgents: 4
 */
See Also