ArcObjects Library Reference (System)  

IExtension.Startup Method

Starts up the extension with the given initialization data.

[Visual Basic .NET]
Public Sub Startup ( _
    ByRef initializationData As Object _
)
[C#]
public void Startup (
    ref object initializationData
);
[C++]
HRESULT Startup(
  VARIANT* initializationData
);
[C++]

Parameters

initializationData [in]   initializationData is a parameter of type VARIANT

Product Availability

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

Description

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

Remarks

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