Interface IESRILicenseInfo

Namespace
ESRI.ArcGIS.esriSystem
Assembly
ESRI.Server.System.dll

Provides access to members that check software licenses.

[Guid("FCF1E388-5C7E-4BF3-AF4B-155D93F8297F")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IESRILicenseInfo

Remarks

The object models for ArcView, ArcEditor, and ArcInfo at ArcGIS 9.0 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.

Properties

DefaultProduct

Indicates the product code that will be used on the current machine.

esriProductCode DefaultProduct { get; }

Property Value

esriProductCode

Methods

IsLicensed(esriProductCode)

Indicates if the specified product is licensed.

bool IsLicensed(esriProductCode ProductCode)

Parameters

ProductCode esriProductCode

Returns

bool