[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]Uninstalls a management pack bundle, delegating each management pack uninstall to the handler callback. This method uninstalls each management pack in the package and its owned resource streams. 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.UninstallBundle(package, handler)

Syntax

Visual Basic
Sub UninstallBundle ( _
		package As ManagementPackBundle, _
		handler As ImportPackagedManagementPackCallback _
)
C#
void UninstallBundle (
		ManagementPackBundle package,
		ImportPackagedManagementPackCallback handler
)
C++
void UninstallBundle (
		ManagementPackBundle^ package, 
		ImportPackagedManagementPackCallback^ handler
)
J#
void UninstallBundle (
		ManagementPackBundle package, 
		ImportPackagedManagementPackCallback handler
)
JScript
function UninstallBundle (
		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 uninstalled.

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-

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

InvalidOperationException

An error occurred when uninstalling the management packs that are referenced by the ManagementPackBundle object, from the package parameter.

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