AddInToken::Activate<T> Method (AddInEnvironment^)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Activates an add-in in the environment of another add-in.

Namespace:   System.AddIn.Hosting
Assembly:  System.AddIn (in System.AddIn.dll)

public:
generic<typename T>
T Activate(
	AddInEnvironment^ environment
)

Parameters

environment
Type: System.AddIn.Hosting::AddInEnvironment^

The application domain and process that contains the original add-in.

Return Value

Type: T

The host view of the add-in.

Type Parameters

T

The interface or abstract base type that represents the host view of the add-in.

This method overload activates the add-in in the same application domain and process as the add-in from which environment was obtained.

The following example activates one add-in in an automatically generated application domain with a specified security level. It then activates a second add-in in the same application domain and process as the first by using the first add-in's AddInEnvironment object.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.5
Return to top
Show: