Compartilhar via


System Center

Adds a new feature to the container by instantiating the passed in type. The default lifetime will be singleton.

Namespace: Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.Core (in microsoft.enterprisemanagement.core.dll)

Usage

'Usage
Dim instance As IFeatureContainer
Dim context As ActivationContext(Of V)

instance.AddFeature(context)

Syntax

'Declaration
Sub AddFeature(Of T, V As T) ( _
    context As ActivationContext(Of V) _
)
void AddFeature<T,V> (
    ActivationContext<V> context
) where V : T
generic<typename T, typename V> where V : T
void AddFeature (
    ActivationContext<V>^ context
)

GenericParameters

  • T
  • V

Parameters

  • context
    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

IFeatureContainer Interface
IFeatureContainer Members
Microsoft.EnterpriseManagement Namespace