共用方式為


CimSession.CreateAsync Method (String)

 

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
)
public:
static CimAsyncResult<CimSession^>^ CreateAsync(
    String^ computerName
)
static member CreateAsync : 
        computerName:string -> CimAsyncResult<CimSession>
Public Shared Function CreateAsync (
    computerName As String
) 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