IManagementPackManagement.UninstallBundle Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Uninstalls a management pack bundle.
Overloads
UninstallBundle(ManagementPackBundle) |
Uninstalls a management pack bundle, which uninstalls each management pack and its owned resource streams. |
UninstallBundle(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. |
UninstallBundle(ManagementPackBundle)
Uninstalls a management pack bundle, which uninstalls each management pack and its owned resource streams.
public:
void UninstallBundle(Microsoft::EnterpriseManagement::Packaging::ManagementPackBundle ^ package);
public void UninstallBundle (Microsoft.EnterpriseManagement.Packaging.ManagementPackBundle package);
abstract member UninstallBundle : Microsoft.EnterpriseManagement.Packaging.ManagementPackBundle -> unit
Public Sub UninstallBundle (package As ManagementPackBundle)
Parameters
- package
- ManagementPackBundle
The management pack bundle.
Exceptions
An error has occurred.
The package
parameter is a null reference (Nothing in Visual Basic).
An error occurred when uninstalling the management packs that are referenced by the ManagementPackBundle object, from the package
parameter.
The management packs that are referenced by the ManagementPackBundle object, from the package
parameter, contain a circular dependency reference.
Applies to
UninstallBundle(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.
public:
void UninstallBundle(Microsoft::EnterpriseManagement::Packaging::ManagementPackBundle ^ package, Microsoft::EnterpriseManagement::ImportPackagedManagementPackCallback ^ handler);
public void UninstallBundle (Microsoft.EnterpriseManagement.Packaging.ManagementPackBundle package, Microsoft.EnterpriseManagement.ImportPackagedManagementPackCallback handler);
abstract member UninstallBundle : Microsoft.EnterpriseManagement.Packaging.ManagementPackBundle * Microsoft.EnterpriseManagement.ImportPackagedManagementPackCallback -> unit
Public Sub UninstallBundle (package As ManagementPackBundle, handler As ImportPackagedManagementPackCallback)
Parameters
- package
- ManagementPackBundle
The management pack bundle.
The callback that decides whether each management pack in the bundle should be uninstalled.
Exceptions
An error has occurred.
The handler
parameter is a null reference (Nothing in Visual Basic), or the package
parameter is a null reference (Nothing in Visual Basic).
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.
An error occurred when uninstalling the management packs that are referenced by the ManagementPackBundle object, from the package
parameter.
Applies to
Thread Safety
These methods are thread safe.