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)
Dim featureName As String
instance.AddFeature(context, featureName)
Syntax
'Declaration
Sub AddFeature(Of T, V As T) ( _
context As ActivationContext(Of V), _
featureName As String _
)
void AddFeature<T,V> (
ActivationContext<V> context,
string featureName
) where V : T
generic<typename T, typename V> where V : T
void AddFeature (
ActivationContext<V>^ context,
String^ featureName
)
GenericParameters
- T
- V
Parameters
- context
The context.
- featureName
The feature name to add.
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