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.