Freigeben über


ComponentActivator.Activate Method

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Activates the context specified by the context parameter, and returns the activated instance as type T.

Namespace: Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.Core (in Microsoft.EnterpriseManagement.Core.dll)

Usage

'Usage
Dim instance As ComponentActivator
Dim context As ActivationContext(Of T)
Dim returnValue As T

returnValue = instance.Activate(context)

Syntax

'Declaration
Public Function Activate(Of T) ( _
    context As ActivationContext(Of T) _
) As T
public T Activate<T> (
    ActivationContext<T> context
)
public:
generic<typename T>
virtual T Activate (
    ActivationContext<T>^ context
) sealed

GenericParameters

  • T

Parameters

  • context
    The context used in activating the type T.

Return Value

Type: {0}.
Instance of T activated by the context.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows Server 2003, and

Target Platforms

Windows Server 2008,Windows Server 2003

See Also

Reference

ComponentActivator Class
ComponentActivator Members
Microsoft.EnterpriseManagement Namespace