Compartilhar via


IManagementPackManagement.UninstallBundle Method (ManagementPackBundle, ImportPackagedManagementPackCallback)

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

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

instance.UninstallBundle(package, handler)

Syntax

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

Parameters

  • package
    The management pack bundle.
  • handler
    The callback that decides whether 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 Vista, Windows Server 2003, and

Target Platforms

Windows Server 2008,Windows Server 2003

See Also

Reference

IManagementPackManagement Interface
IManagementPackManagement Members
Microsoft.EnterpriseManagement Namespace