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.StringThe name of the CIM server or Null to indicate the local computer.
sessionOptions
Type: Microsoft.Management.Infrastructure.Options.CimSessionOptionsA CimSessionOptions object that represents the options to use in creating the CimSession object.
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