Compartilhar via


System Center

Adds a new feature to the container by storing the passed in instance. The lifetime of the instance will not be managed by the container.

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

Usage

'Usage
Dim instance As IFeatureContainer
Dim instance As V

instance.AddFeature(instance)

Syntax

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

GenericParameters

  • T
  • V

Parameters

  • instance
    The instance to store.

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