Export (0) Print
Expand All

AddInToken.Activate(T) Method (AddInEnvironment)

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

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

member Activate : 
        environment:AddInEnvironment -> 'T 

Type Parameters

T

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

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.

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

Supported in: 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft