[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]Imports a single management pack and its resources into the current management group together with resources. Namespace: Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.Core (in microsoft.enterprisemanagement.core.dll)

Usage

Visual Basic
Dim instance As IManagementPackManagement
Dim managementPack As ManagementPack
Dim resources As IDictionary(Of String, ResourceStream)

instance.ImportManagementPack(managementPack, resources)

Syntax

Visual Basic
Sub ImportManagementPack ( _
		managementPack As ManagementPack, _
		resources As IDictionary(Of String, ResourceStream) _
)
C#
void ImportManagementPack (
		ManagementPack managementPack,
		IDictionary<string,ResourceStream> resources
)
C++
void ImportManagementPack (
		ManagementPack^ managementPack, 
		IDictionary<String^, ResourceStream^>^ resources
)
J#
void ImportManagementPack (
		ManagementPack managementPack, 
		IDictionary<String,ResourceStream> resources
)
JScript
function ImportManagementPack (
		managementPack : ManagementPack, 
		resources : IDictionary<String,ResourceStream>
)

Parameters

managementPack

Type: ManagementPack

The management pack.

resources

Type: ResourceStream}

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 Server 2008, Windows Vista, Windows Server 2003, and Windows XP

Target Platforms

Windows Server 2008,Windows Server 2003

See Also