| IOcrPropertiesMaxOcrAgents Property |
Gets and sets maximum number of OCR agents allowed to run on this case.
Namespace:
EdaIntegrationContract.OCR
Assembly:
EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 7.6
Syntax int MaxOcrAgents { get; set; }
Property Value
Type:
Int32Exceptions Exception | Condition |
---|
EdaApiException | An 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.
using Law.EdaIntegration;
using Law.EdaIntegration.Case;
using Law.EdaIntegration.Ocr;
class Sample
{
public static void Main()
{
EdaIntegration edaIntegration = EdaIntegration.ConnectToExplore();
Case edaCase = edaIntegration.Cases.OpenCaseByName("Case 1");
edaCase.OCR.Properties.MaxOcrAgents = 4;
edaCase.OCR.UpdateProperties();
Console.WriteLine("MaxOcrAgents: {0}", edaCase.OCR.Properties.MaxOcrAgents);
}
}
See Also