IManagementPackManagement.ImportBundle Method

Definition

Imports a management pack bundle, which can contain multiple management packs and their resources.

Overloads

ImportBundle(ManagementPackBundle)

Imports a management pack bundle, which can contain multiple management packs and their resources.

ImportBundle(ManagementPackBundle, ImportPackagedManagementPackCallback)

Imports a management pack bundle. If the handler callback returns true, the pack will be imported.

ImportBundle(ManagementPackBundle)

Imports a management pack bundle, which can contain multiple management packs and their resources.

public:
 void ImportBundle(Microsoft::EnterpriseManagement::Packaging::ManagementPackBundle ^ package);
public void ImportBundle (Microsoft.EnterpriseManagement.Packaging.ManagementPackBundle package);
abstract member ImportBundle : Microsoft.EnterpriseManagement.Packaging.ManagementPackBundle -> unit
Public Sub ImportBundle (package As ManagementPackBundle)

Parameters

package
ManagementPackBundle

The management pack bundle.

Exceptions

An error has occurred.

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

The management packs that are referenced by the ManagementPackBundle object, from the package parameter, contain a circular dependency reference.

Applies to

ImportBundle(ManagementPackBundle, ImportPackagedManagementPackCallback)

Imports a management pack bundle. If the handler callback returns true, the pack will be imported.

public:
 void ImportBundle(Microsoft::EnterpriseManagement::Packaging::ManagementPackBundle ^ package, Microsoft::EnterpriseManagement::ImportPackagedManagementPackCallback ^ handler);
public void ImportBundle (Microsoft.EnterpriseManagement.Packaging.ManagementPackBundle package, Microsoft.EnterpriseManagement.ImportPackagedManagementPackCallback handler);
abstract member ImportBundle : Microsoft.EnterpriseManagement.Packaging.ManagementPackBundle * Microsoft.EnterpriseManagement.ImportPackagedManagementPackCallback -> unit
Public Sub ImportBundle (package As ManagementPackBundle, handler As ImportPackagedManagementPackCallback)

Parameters

package
ManagementPackBundle

The management pack bundle.

handler
ImportPackagedManagementPackCallback

The callback that decides whether each management pack in the bundle should be imported.

Exceptions

An error has occurred.

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

The package parameter does not contain any management packs; or an error occurred when importing the management packs that are referenced by the ManagementPackBundle object, from the package parameter; or the management packs that are referenced by the ManagementPackBundle object, from the package parameter, contain a circular dependency reference.

Applies to

Thread Safety

These methods are thread safe.