IManagementPackManagement.ImportManagementPack Method (ManagementPack, Generic IDictionary)
Imports a single management pack and its resources into the current management group.
Namespace: Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.Core (in microsoft.enterprisemanagement.core.dll)
Usage
'Usage
Dim instance As IManagementPackManagement
Dim managementPack As ManagementPack
Dim resources As IDictionary(Of String, ResourceStream)
instance.ImportManagementPack(managementPack, resources)
Syntax
'Declaration
Sub ImportManagementPack ( _
managementPack As ManagementPack, _
resources As IDictionary(Of String, ResourceStream) _
)
void ImportManagementPack (
ManagementPack managementPack,
IDictionary<string,ResourceStream> resources
)
void ImportManagementPack (
ManagementPack^ managementPack,
IDictionary<String^, ResourceStream^>^ resources
)
void ImportManagementPack (
ManagementPack managementPack,
IDictionary<String,ResourceStream> resources
)
function ImportManagementPack (
managementPack : ManagementPack,
resources : IDictionary<String,ResourceStream>
)
Parameters
- managementPack
The management pack.
- resources
The management pack’s resources.
Exceptions
Exception type | Condition |
---|---|
ServerDisconnectedException | An error has occurred. |
ArgumentNullException | The managementPack parameter is a null reference (Nothing in Visual Basic), or the resources parameter is a null reference (Nothing in Visual Basic). |
ArgumentException | The management pack that is referenced by the managementPack parameter did not import. |
Thread Safety
This method is thread safe.
Platforms
Development Platforms
Windows Vista, Windows Server 2003, and
Target Platforms
Windows Server 2008,Windows Server 2003
See Also
Reference
IManagementPackManagement Interface
IManagementPackManagement Members
Microsoft.EnterpriseManagement Namespace