> ## 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.

# License Object (ILicense Interface)

> License object (ILicense interface) in the ABBYY FineReader Engine API — This object stores information about the current license.

This object stores information about the current license.

## Properties

<table><thead><tr><th><p><strong>Name</strong></p></th><th><p><strong>Type</strong></p></th><th><p><strong>Description</strong></p></th></tr></thead><tbody><tr><td><p><strong>Application</strong></p></td><td><p><strong><a href="/fine-reader/engine/api-reference/engine-object-iengine-interface">Engine</a></strong>, <a href="/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties#readonly_properties">read-only</a></p></td><td><p>Returns the <strong>Engine</strong> object.</p></td></tr><tr><td colspan="3"><p><em>License number</em></p></td></tr><tr><td><p><a name="customerprojectid" /><strong>CustomerProjectId</strong></p></td><td><p><strong><a href="/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">BSTR</a></strong>, read-only</p></td><td><p>Returns the <a href="/fine-reader/engine/api-reference/functions/initializeengine-function#customerprojectid">Customer Project ID</a> to which the license corresponds. The ID is common to all the licenses in one project and is used to initialize the library.</p></td></tr><tr><td><p><a name="serialnumber" /><strong>SerialNumber</strong></p></td><td><p><strong><a href="/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">BSTR</a></strong>, read-only</p></td><td><p>Returns the serial number of the license.</p></td></tr><tr><td colspan="3"><p><em>License parameters</em></p></td></tr><tr><td><p><a name="availableenginemodules" /><strong>AvailableEngineModules</strong></p></td><td><p><strong><a href="/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">int</a></strong>, read-only</p></td><td><p>Describes the set of the ABBYY FineReader Engine modules available in the license as a bitwise OR combination of the <strong><a href="/fine-reader/engine/api-reference/enumerations/availableenginemodulesflags">AEM\_</a></strong> prefixed flags.</p></td></tr><tr><td><p><a name="availablebarcodemodules" /><strong>AvailableBarcodeModules</strong></p></td><td><p><strong><a href="/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">int</a></strong>, read-only</p></td><td><p>Describes the set of the ABBYY FineReader Engine barcode modules available in the license as a bitwise OR combination of the <strong><a href="/fine-reader/engine/api-reference/enumerations/availablebarcodemodulesflags">ABM\_</a></strong> prefixed flags.</p></td></tr><tr><td><p><a name="availableexportformats" /><strong>AvailableExportFormats</strong></p></td><td><p><strong><a href="/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">int</a></strong>, read-only</p></td><td><p>Describes the set of the export formats available in the license as a bitwise OR combination of the <strong><a href="/fine-reader/engine/api-reference/enumerations/availableexportformatsflags">AEF\_</a></strong> prefixed flags.</p></td></tr><tr><td><p><a name="availablelanguagesets" /><strong>AvailableLanguageSets</strong></p></td><td><p><strong><a href="/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">int</a></strong>, read-only</p></td><td><p>Describes the set of the language sets available in the license as a bitwise OR combination of the <strong><a href="/fine-reader/engine/api-reference/enumerations/availablelanguagesetsflags">ALS\_</a></strong> prefixed flags.</p></td></tr><tr><td><p><a name="availabletexttypes" /><strong>AvailableTextTypes</strong></p></td><td><p><strong><a href="/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">int</a></strong>, read-only</p></td><td><p>Describes the set of the text types available in the license as a bitwise OR combination of the <strong><a href="/fine-reader/engine/api-reference/enumerations/availabletexttypesflags">ATT\_</a></strong> prefixed flags.</p></td></tr><tr><td><p><a name="availablevisualcomponents" /><strong>AvailableVisualComponents</strong></p></td><td><p><strong><a href="/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">int</a></strong>, read-only</p></td><td><Warning>Visual Components are currently only supported for Windows.</Warning><p>Describes the set of the ABBYY FineReader Engine Visual Components modules available in the license as a bitwise OR combination of the <strong><a href="/fine-reader/engine/api-reference/enumerations/availablevisualcomponentsflags">AVC\_</a></strong> prefixed flags.</p></td></tr><tr><td><p><a name="allowedcorescount" /><strong>AllowedCoresCount</strong></p></td><td><p><strong><a href="/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">int</a></strong>, read-only</p></td><td><p>Returns the number of CPU cores that can be used simultaneously. If the value of this property is 0, the number of CPU cores is unlimited.</p></td></tr><tr><td><p><a name="minimumcorescountperinstance" /><strong>MinimumCoresCountPerInstance</strong></p></td><td><p><strong><a href="/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">int</a></strong>, read-only</p></td><td><p>Returns the minimum number of CPU cores which is allocated by ABBYY FineReader Engine at initialization.</p></td></tr><tr><td colspan="3"><p><em>Volume counters</em></p></td></tr><tr><td><p><strong><a href="/fine-reader/engine/api-reference/license-related-objects/license/volume-property">Volume</a></strong></p></td><td><p><strong><a href="/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">int</a></strong>, read-only</p></td><td><p>Returns the total number of pages/characters which can be processed during a period if the license has such a limitation. See also the <strong>VolumeRefreshingPeriod</strong> property.</p></td></tr><tr><td><p><strong><a href="/fine-reader/engine/api-reference/license-related-objects/license/volumerefreshingperiod-property">VolumeRefreshingPeriod</a></strong></p></td><td><p><strong><a href="/fine-reader/engine/api-reference/enumerations/volumerefreshingperiodenum">VolumeRefreshingPeriodEnum</a></strong>, read-only</p></td><td><p>Returns information about the limitation period if the license limits the number of processed pages/characters during this period. See also the <strong>VolumeRemaining</strong>, <strong>Volume</strong> properties.</p></td></tr><tr><td><p><strong><a href="/fine-reader/engine/api-reference/license-related-objects/license/volumeremaining-property">VolumeRemaining</a></strong></p></td><td><p><strong><a href="/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">int</a></strong>, read-only</p></td><td><p>Returns the remaining number of pages/characters which can be processed till the end of the current period if the license has such a limitation. When this property value reaches 0, analysis, recognition and export operations will not be possible. See also the <strong>VolumeRefreshingPeriod</strong> property.</p></td></tr></tbody></table>

## Methods

| Name                                                                                                                  | Description                                                                                                                                     |
| --------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| [ExpirationDate](/fine-reader/engine/api-reference/license-related-objects/license/expirationdate-method)             | Returns a flag indicating whether the license has an absolute or relative time limitation, and the date at which the license will stop working. |
| [VolumeRefreshingDate](/fine-reader/engine/api-reference/license-related-objects/license/volumerefreshingdate-method) | Returns a renewal date for the ABBYY FineReader Engine license limitations in a number of pages processed.                                      |

## Related objects

<img src="https://mintcdn.com/abbyy/lsETHFYUFiongXSm/images/fine-reader/engine/license.gif?s=422eb385d5d9303c3b21d73cd9814aed" alt="License" width="296" height="104" data-path="images/fine-reader/engine/license.gif" />[](/fine-reader/engine/api-reference/engine-object-iengine-interface/supplementary-methods/getavailablelicenses-method)[](/fine-reader/engine/visual-components-reference/supplementary-objects/spellwordcollection/element-property)[](/fine-reader/engine/api-reference/engine-object-iengine-interface/properties)[](/fine-reader/engine/api-reference/engine-object-iengine-interface)[](/fine-reader/engine/api-reference/license-related-objects/licenses)

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

## Output parameter

This object is the output parameter of the [Item](/fine-reader/engine/visual-components-reference/supplementary-objects/spellwordcollection/item-method) and [Find](/fine-reader/engine/api-reference/license-related-objects/licenses/find-method) methods of the [Licenses](/fine-reader/engine/api-reference/license-related-objects/licenses) object.

## Input parameter

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

## Samples

<Accordion title="C# code">
  ```csharp theme={null}
  FREngine.IEngine engine;
  // We presume that the Engine object has been initialized
  // Working the license properties
  int allowedCores = Engine.CurrentLicense.AllowedCoresCount;
  if( allowedCores == 0 ) {
   // Unlimited number of cores is allowed by the license
  } else {
   // The number of cores allowed by the license: allowedCores
  }
  ```
</Accordion>

The object is used in the following code samples:

* Linux: [CommandLineInterface](/fine-reader/engine/guided-tour/samples#commandlineinterface)
* Windows: [CommandLineInterface](/fine-reader/engine/guided-tour/samples#commandlineinterface); and demo tools: [BatchProcessingRecognition](/fine-reader/engine/guided-tour/samples#batchprocessingrecognition), [MultiProcessingRecognition](/fine-reader/engine/guided-tour/samples#multiprocessingrecognition), [PDFExportProfiles](/fine-reader/engine/guided-tour/samples#pdfexportprofiles), [User Pattern Training Utility](/fine-reader/engine/guided-tour/samples#user_pattern_training_utility)

## See also

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

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

[Methods Which Increase the License Counter](/fine-reader/engine/licensing/counter-increasing-methods)
