Condividi tramite


CimSession.CreateAsync Method (String, CimSessionOptions)

 

Asynchronously initializes a new instance of the CimSession class.

Namespace:   Microsoft.Management.Infrastructure
Assembly:  Microsoft.Management.Infrastructure (in Microsoft.Management.Infrastructure.dll)

Syntax

public static CimAsyncResult<CimSession> CreateAsync(
    string computerName,
    CimSessionOptions sessionOptions
)
public:
static CimAsyncResult<CimSession^>^ CreateAsync(
    String^ computerName,
    CimSessionOptions^ sessionOptions
)
static member CreateAsync : 
        computerName:string *
        sessionOptions:CimSessionOptions -> CimAsyncResult<CimSession>
Public Shared Function CreateAsync (
    computerName As String,
    sessionOptions As CimSessionOptions
) As CimAsyncResult(Of CimSession)

Parameters

  • computerName
    Type: System.String

    The name of the CIM server or Null to indicate the local computer.

Return Value

Type: Microsoft.Management.Infrastructure.Generic.CimAsyncResult<CimSession>

A CimAsyncStatus object that represents the status of the CimSession object creation.

See Also

CreateAsync Overload
CimSession Class
Microsoft.Management.Infrastructure Namespace

Return to top