Share via


IManagementPackManagement.ImportManagementPack Method

Definition

Imports a single management pack into the current management group.

Overloads

ImportManagementPack(ManagementPack)

Imports a single management pack into the current management group.

ImportManagementPack(ManagementPack, IDictionary<String,ResourceStream>)

Imports a single management pack and its resources into the current management group.

ImportManagementPack(ManagementPack)

Imports a single management pack into the current management group.

public:
 void ImportManagementPack(Microsoft::EnterpriseManagement::Configuration::ManagementPack ^ managementPack);
public void ImportManagementPack (Microsoft.EnterpriseManagement.Configuration.ManagementPack managementPack);
abstract member ImportManagementPack : Microsoft.EnterpriseManagement.Configuration.ManagementPack -> unit
Public Sub ImportManagementPack (managementPack As ManagementPack)

Parameters

managementPack
ManagementPack

The management pack.

Exceptions

An error has occurred.

The managementPack parameter is a null reference (Nothing in Visual Basic).

The management pack referenced by the managementPack parameter did not import.

Applies to

ImportManagementPack(ManagementPack, IDictionary<String,ResourceStream>)

Imports a single management pack and its resources into the current management group.

public:
 void ImportManagementPack(Microsoft::EnterpriseManagement::Configuration::ManagementPack ^ managementPack, System::Collections::Generic::IDictionary<System::String ^, Microsoft::EnterpriseManagement::Common::ResourceStream ^> ^ resources);
public void ImportManagementPack (Microsoft.EnterpriseManagement.Configuration.ManagementPack managementPack, System.Collections.Generic.IDictionary<string,Microsoft.EnterpriseManagement.Common.ResourceStream> resources);
abstract member ImportManagementPack : Microsoft.EnterpriseManagement.Configuration.ManagementPack * System.Collections.Generic.IDictionary<string, Microsoft.EnterpriseManagement.Common.ResourceStream> -> unit
Public Sub ImportManagementPack (managementPack As ManagementPack, resources As IDictionary(Of String, ResourceStream))

Parameters

managementPack
ManagementPack

The management pack.

resources
IDictionary<String,ResourceStream>

The management pack’s resources.

Exceptions

An error has occurred.

The managementPack parameter is a null reference (Nothing in Visual Basic), or the resources parameter is a null reference (Nothing in Visual Basic).

The management pack that is referenced by the managementPack parameter did not import.

Applies to

Thread Safety

These methods are thread safe.