Share via


IManagementPackManagement.BeginImportManagementPack Method (ManagementPack, Generic IDictionary, AsyncCallback, Object)

Asynchronously starts to import a single management pack with resource data streams.

Namespace: Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.Core (in microsoft.enterprisemanagement.core.dll)

Usage

'Usage
Dim instance As IManagementPackManagement
Dim managementPack As ManagementPack
Dim resources As IDictionary(Of String, ResourceStream)
Dim callback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult

returnValue = instance.BeginImportManagementPack(managementPack, resources, callback, state)

Syntax

'Declaration
Function BeginImportManagementPack ( _
    managementPack As ManagementPack, _
    resources As IDictionary(Of String, ResourceStream), _
    callback As AsyncCallback, _
    state As Object _
) As IAsyncResult
IAsyncResult BeginImportManagementPack (
    ManagementPack managementPack,
    IDictionary<string,ResourceStream> resources,
    AsyncCallback callback,
    Object state
)
IAsyncResult^ BeginImportManagementPack (
    ManagementPack^ managementPack, 
    IDictionary<String^, ResourceStream^>^ resources, 
    AsyncCallback^ callback, 
    Object^ state
)
IAsyncResult BeginImportManagementPack (
    ManagementPack managementPack, 
    IDictionary<String,ResourceStream> resources, 
    AsyncCallback callback, 
    Object state
)
function BeginImportManagementPack (
    managementPack : ManagementPack, 
    resources : IDictionary<String,ResourceStream>, 
    callback : AsyncCallback, 
    state : Object
) : IAsyncResult

Parameters

  • managementPack
    The management pack to import.
  • resources
    The resource files that are referenced by the management pack. The files will be imported with the management pack.
  • callback
    The callback method that is called when the management pack import has completed.
  • state
    The optional state object to pass back to the callback method.

Return Value

The status of the asynchronous request.

Exceptions

Exception type Condition
ArgumentNullException

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

ArgumentException

The ManagementPack type from the managementPack parameter is already in the management group.

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