> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Licenses Object (ILicenses Interface)

This object is a collection of available (activated) licenses. The collection is accessible via the [Engine](/fine-reader/engine/api-reference/engine-object-iengine-interface) 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

| Name                                                                                                                  | Type                                                                                                                                                                                                           | Description                                            |
| --------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------ |
| Application                                                                                                           | [Engine](/fine-reader/engine/api-reference/engine-object-iengine-interface), [read-only](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties#readonly_properties)  | Returns the Engine object.                             |
| Count                                                                                                                 | [int](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties), read-only                                                                                              | Stores the number of elements in the collection.       |
| [Element](/fine-reader/engine/visual-components-reference/supplementary-objects/spellwordcollection/element-property) | [License](/fine-reader/engine/api-reference/license-related-objects/license), [read-only](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties#readonly_properties) | Provides access to a single element of the collection. |

## Methods

| Name                                                                                                          | Description                                            |
| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------ |
| [Find](/fine-reader/engine/api-reference/license-related-objects/licenses/find-method)                        | Provides access to the license by its serial number.   |
| [Item](/fine-reader/engine/visual-components-reference/supplementary-objects/spellwordcollection/item-method) | Provides access to a single element of the collection. |

## Output parameter

This object is the output parameter of the [GetAvailableLicenses](/fine-reader/engine/api-reference/engine-object-iengine-interface/supplementary-methods/getavailablelicenses-method) method of the [Engine](/fine-reader/engine/api-reference/engine-object-iengine-interface) object.

## Related objects

[Object Diagram](/fine-reader/engine/api-reference/object-diagram)

## Samples

<Accordion title="C# code">
  ```csharp theme={null}
  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);
  ```
</Accordion>

The object is used in the following Windows demo tools: [User Pattern Training Utility](/fine-reader/engine/guided-tour/samples#user_pattern_training_utility).

## See also

[License](/fine-reader/engine/api-reference/license-related-objects/license)

[IEngine::SetCurrentLicense](/fine-reader/engine/api-reference/engine-object-iengine-interface/supplementary-methods/setcurrentlicense-method)

[Working with Collections](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-collections)

[Working with Properties](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties)
