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


IExtensionManager.Extension Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (System)  

IExtensionManager.Extension Property

The extension at the specified index.

[Visual Basic .NET]
Public Function get_Extension ( _
    ByVal index As Integer _
) As IExtension
[C#]
public IExtension get_Extension (
    int index
);
[C++]
HRESULT get_Extension(
  long index,
  IExtension** Extension
);
[C++]

Parameters index [in] index is a parameter of type long Extension [out, retval]
Extension is a parameter of type IExtension

Product Availability

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

Description

Returns the extension at the specified index from the extensions currently loaded in the application. The first extension has an index of 0 and the last extension has in index of ExtensionCount - 1.

Remarks

This is not the only way to get a reference to an extension; the IApplication interface has FindExtensionByCLSID and FindExtensionByName methods.

See Also

IExtensionManager Interface