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


IPlugInLicense Interface (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

IPlugInLicense Interface

Provides access to members for managing a licensed plug-in.

Product Availability

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

Description

Implement this interface if your plug-in data source requires a license to be used. The interface can be implemented on the plug-in workspace helper class, or the plug-in dataset helper.

A plug-in workspace helper should implement IPlugInLicense if enabling the license enables all datasets of the data source type. If only some datasets are to be enabled, the interface should be implemented on the plug-in dataset helper. If the interface is implemented on both classes, the implementation on the dataset helper will be used. The license is checked by the plug-in feature classes, tables and cursors when they are created.

Members

Description
Method AddLicenseRef Increases the count of things needing the license.
Method CheckExtensionLicense Checks if the license for the extension is enabled. Fails if not enabled.
Method ReleaseLicenseRef Decreases the count of things needing the license.

Remarks

If your plug-in data source will require a license to be used, you must implement a plug-in extension class.