IESRILicenseInfo Interface

Provides access to members that check software licenses.

When To Use

Use the IESRILicenseInfo interface to determine the level of license currently in use--ArcGIS for Desktop Basic, ArcGIS for Desktop Standard, or ArcGIS for Desktop Advanced.

Members

Name Description
Read-only property DefaultProduct Indicates the product code that will be used on the current machine.
Method IsLicensed Indicates if the specified product is licensed.

IESRILicenseInfo.DefaultProduct Property

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

Public ReadOnly Property DefaultProduct As esriProductCode
public esriProductCode DefaultProduct {get;}

IESRILicenseInfo.IsLicensed Method

Indicates if the specified product is licensed.

Public Function IsLicensed ( _
    ByVal ProductCode As esriProductCode _
) As Boolean
public bool IsLicensed (
    esriProductCode ProductCode
);

Classes that implement IESRILicenseInfo

Classes Description
ESRILicenseInfo Esri License Info.

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 ESRILicenseInfococlass and the DefaultProduct property on its IESRILicenseInfointerface.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close