Share via


IManagementPackManagement.ImportBundle Method (ManagementPackBundle, ImportPackagedManagementPackCallback)

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

Namespace: Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.Core (in microsoft.enterprisemanagement.core.dll)

Usage

'Usage
Dim instance As IManagementPackManagement
Dim package As ManagementPackBundle
Dim handler As ImportPackagedManagementPackCallback

instance.ImportBundle(package, handler)

Syntax

'Declaration
Sub ImportBundle ( _
    package As ManagementPackBundle, _
    handler As ImportPackagedManagementPackCallback _
)
void ImportBundle (
    ManagementPackBundle package,
    ImportPackagedManagementPackCallback handler
)
void ImportBundle (
    ManagementPackBundle^ package, 
    ImportPackagedManagementPackCallback^ handler
)
void ImportBundle (
    ManagementPackBundle package, 
    ImportPackagedManagementPackCallback handler
)
function ImportBundle (
    package : ManagementPackBundle, 
    handler : ImportPackagedManagementPackCallback
)

Parameters

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

Exceptions

Exception type Condition
ServerDisconnectedException

An error has occurred.

ArgumentNullException

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

ArgumentException

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.

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