[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]Asynchronously starts to uninstall each management pack in the management pack bundle. If the handler callback returns true, the pack will be uninstalled. 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
Dim callback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult

returnValue = instance.BeginUninstallBundle(package, handler, callback, state)

Syntax

Visual Basic
Function BeginUninstallBundle ( _
		package As ManagementPackBundle, _
		handler As ImportPackagedManagementPackCallback, _
		callback As AsyncCallback, _
		state As Object _
) As IAsyncResult
C#
IAsyncResult BeginUninstallBundle (
		ManagementPackBundle package,
		ImportPackagedManagementPackCallback handler,
		AsyncCallback callback,
		Object state
)
C++
IAsyncResult^ BeginUninstallBundle (
		ManagementPackBundle^ package, 
		ImportPackagedManagementPackCallback^ handler, 
		AsyncCallback^ callback, 
		Object^ state
)
J#
IAsyncResult BeginUninstallBundle (
		ManagementPackBundle package, 
		ImportPackagedManagementPackCallback handler, 
		AsyncCallback callback, 
		Object state
)
JScript
function BeginUninstallBundle (
		package : ManagementPackBundle, 
		handler : ImportPackagedManagementPackCallback, 
		callback : AsyncCallback, 
		state : Object
) : IAsyncResult

Parameters

package

Type: ManagementPackBundle

The management pack package that will be uninstalled.

handler

Type: ImportPackagedManagementPackCallback

The callback that decides whether or not each management pack in the bundle should be uninstalled.

callback

Type: AsyncCallback

The callback method that is called when the management pack bundle uninstall has completed.

state

Type: Object

The optional state object to pass back to the callback method.

Return Value

Type: IAsyncResult The status of the asynchronous request.

Exceptions

Exception type Condition
ArgumentNullException

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

-or-

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

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