This document is archived and information here might be outdated.  Recommended version.


ESRILicenseInfo CoClass (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (System)  

ESRILicenseInfo CoClass

Esri License Info.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Use the ESRILicenseInfo object to determine the current license level in use and whether a specific product is licensed.

Supported Platforms

Windows, Solaris, Linux

Interfaces

Interfaces Description
IESRILicenseInfo Provides access to members that check software licenses.

Remarks

The object models for ArcView, ArcEditor, and ArcInfo at ArcGIS 8.1 are identical. All classes, interfaces, methods, and properties are present in all products. This means that the same DLLs containing the same components with the same GUIDs are installed for all deployments; in other words, code written on one deployment will successfully compile on another. What will differ for the various deployments is the behavior of certain method calls.

As a developer you may need to know what license is currently checked out by the user, so that your code can be robust enough to work on all deploymets, or at least have the appropriate error checking.

To determine the level of license currently in use, use the ESRILicenseInfo coclass and the DefaultProduct property on its IESRILicenseInfo interface.