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


IExtensionManagerAdmin.StartupExtensions Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (System)  

IExtensionManagerAdmin.StartupExtensions Method

Creates and starts the extensions for the given component category, passing initializationData to each in IExtension::Startup.

[Visual Basic .NET]
Public Sub StartupExtensions ( _
    ByVal componentCategory As UID, _
    ByVal jitCategory As UID, _
    ByRef initializationData As Object _
)
[C#]
public void StartupExtensions (
    UID componentCategory,
    UID jitCategory,
    ref object initializationData
);
[C++]
HRESULT StartupExtensions(
  IUID* componentCategory,
  IUID* jitCategory,
  VARIANT* initializationData
);
[C++]

Parameters componentCategory [in]
componentCategory is a parameter of type IUID jitCategory [in]
jitCategory is a parameter of type IUID initializationData [in] initializationData is a parameter of type VARIANT

Product Availability

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

Description

The StartupExtensions method is similar to AddExtension, except that it operates on all the extensions in the specified component category (for example, ESRI Mx Extensions).

Remarks

It is okay to add extensions to your Application using the AddExtension method after extensions were added with the StartupExtensions method.

You cannot add extensions to your Application using the StartupExtensions method after extensions were added with the AddExtension method. It evokes the "Automation error Catastrophic failure" (-2147418113).

The StartupExtensions method needs to be called before the AddExtensions method or used solely.  

See Also

IExtensionManagerAdmin Interface