Skip to main content
This object is a collection of available (activated) licenses. The collection is accessible via the Engine object.
  • The indexing of ABBYY FineReader Engine collections starts with 0.
  • The foreach statement in C# (for each in Visual Basic .NET) can be used to manipulate the collection.

Properties

NameTypeDescription
ApplicationEngine, read-onlyReturns the Engine object.
Countint, read-onlyStores the number of elements in the collection.
ElementLicense, read-onlyProvides access to a single element of the collection.

Methods

NameDescription
FindProvides access to the license by its serial number.
ItemProvides access to a single element of the collection.

Output parameter

This object is the output parameter of the GetAvailableLicenses method of the Engine object. Object Diagram

Samples

FREngine.IEngine engine;
// We presume that the Engine object has been loaded
// Selecting the license
string projectId = ""; // set the correct projectID
FREngine.ILicenses licenses = Engine.GetAvailableLicenses(projectId);
int selectedIndex = 0; // select the license
FREngine.ILicense license = licenses.Item(selectedIndex);
Engine.SetCurrentLicense(license);
The object is used in the following Windows demo tools: User Pattern Training Utility.

See also

License IEngine::SetCurrentLicense Working with Collections Working with Properties