[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]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

Visual Basic
Dim instance As IManagementPackManagement
Dim package As ManagementPackBundle
Dim handler As ImportPackagedManagementPackCallback

instance.ImportBundle(package, handler)

Syntax

Visual Basic
Sub ImportBundle ( _
		package As ManagementPackBundle, _
		handler As ImportPackagedManagementPackCallback _
)
C#
void ImportBundle (
		ManagementPackBundle package,
		ImportPackagedManagementPackCallback handler
)
C++
void ImportBundle (
		ManagementPackBundle^ package, 
		ImportPackagedManagementPackCallback^ handler
)
J#
void ImportBundle (
		ManagementPackBundle package, 
		ImportPackagedManagementPackCallback handler
)
JScript
function ImportBundle (
		package : ManagementPackBundle, 
		handler : ImportPackagedManagementPackCallback
)

Parameters

package

Type: ManagementPackBundle

The management pack bundle.

handler

Type: ImportPackagedManagementPackCallback

The callback that decides whether or not 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 Server 2008, Windows Vista, Windows Server 2003, and Windows XP

Target Platforms

Windows Server 2008,Windows Server 2003

See Also