IManagementPackManagement.TryImportBundle Method (ManagementPackBundle, ImportPackagedManagementPackCallback)
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Tries to import the specified management pack bundle into the system. The decision of whether a management pack can be imported or not is made by the specified custom callback. If the callback returns false, then the method does not import the management pack. If the callback returns true, then the method imports the management pack.
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
Dim returnValue As IList(Of ManagementPackVerificationResult)
returnValue = instance.TryImportBundle(package, handler)
Syntax
'Declaration
Function TryImportBundle ( _
package As ManagementPackBundle, _
handler As ImportPackagedManagementPackCallback _
) As IList(Of ManagementPackVerificationResult)
IList<ManagementPackVerificationResult> TryImportBundle (
ManagementPackBundle package,
ImportPackagedManagementPackCallback handler
)
IList<ManagementPackVerificationResult^>^ TryImportBundle (
ManagementPackBundle^ package,
ImportPackagedManagementPackCallback^ handler
)
IList<ManagementPackVerificationResult> TryImportBundle (
ManagementPackBundle package,
ImportPackagedManagementPackCallback handler
)
function TryImportBundle (
package : ManagementPackBundle,
handler : ImportPackagedManagementPackCallback
) : IList<ManagementPackVerificationResult>
Parameters
- package
The management pack bundle to import.
- handler
The callback that decides whether each management pack in the bundle should be imported or not.
Return Value
The list of verification results.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be 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