Click or drag to resize

OcrPropertiesMaxOcrAgents Property

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

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

Property Value

Type: Int32
Exceptions
ExceptionCondition
EdaApiExceptionAn exception is thrown if the max OCR 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 MaxOcrAgents.
C#
using Law.EdaIntegration;
using Law.EdaIntegration.Case;
using Law.EdaIntegration.Ocr;

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 MaxOcrAgents value
        edaCase.OCR.Properties.MaxOcrAgents = 4;

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

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

MaxOcrAgents: 4
 */
See Also