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

IExtension.Startup Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IE > IExtension Interface > IExtension.Startup Method
ArcGIS Developer Help

IExtension.Startup Method

Starts up the extension with the given initialization data.

[Visual Basic .NET]
Public Sub Startup ( _
    ByRef initializationData As Object _
public void Startup (
    ref object initializationData
HRESULT Startup(
  Variant* initializationData
initializationData [in]

initializationData is a parameter of type VARIANT*

Product Availability

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


initializationData is a reference to the object with which this extension is registered.


When implementing IExtension to create a custom extension, use the Startup method to perform some action when the extension gets loaded.

The following list is an example of some of the common object types for the initializationData parameter.

Extension Category          initializationData object type
ESRI Mx Application            Application (IMxApplication)
ESRI Gx Applcation             Application (IGxApplication)
ESRI Editor Extensions        Editor (IEditor)

See Also

IExtension Interface