Interface IExtensionManager
- Namespace
- ESRI.ArcGIS.esriSystem
- Assembly
- ESRI.Server.System.dll
Provides access to members that query extension.
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("05C71634-D9D5-4D6F-B68E-D7661142FA06")]
public interface IExtensionManager
Remarks
The Application object implements the IExtensionManager interface that has properties to get a reference to a particular extension and to get a count of how many extension are currently loaded.
Note, other types of objects can also implement IExtensionManager. For example, the Editor toolbar in ArcMap is an extension that manages editor extensions. Therefore, the Editor object also implements IExtensionManager.
See the About Extensions topics for more details.
Properties
Extension[int]
The extension at the specified index.
IExtension Extension[int Index] { get; }
Parameters
Indexint
Property Value
Remarks
This is not the only way to get a reference to an extension; the IApplication interface has FindExtensionByCLSID and FindExtensionByName methods.
ExtensionCLSID[int]
The CLSID of the extension at the specified index.
UID ExtensionCLSID[int Index] { get; }
Parameters
Indexint
Property Value
ExtensionCount
The number of extensions loaded in the application.
int ExtensionCount { get; }
Property Value
Methods
FindExtension(object)
Finds the extension by CLSID (IUID) or name (String).
IExtension FindExtension(object nameOrID)
Parameters
nameOrIDobject
Returns
Remarks
COM coclasses are identified by a globally unique identifier (GUID). There two formats for the GUID for a coclass: a class ID (CLSID) and a ProgID. The ProgID is a text alias for a CLSID. The UID coclass can be used to represent the GUID of an extension object. You can set the IUID.Value property to either the CLSID or the ProgID.
To find the Name, CLSID, and ProgID of an ESRI extension, refer to the following technical document:
ArcObjects Developer Help > Technical Documents > Names and IDs > Extensions