CimSession.CreateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateAsync(String) | |
CreateAsync(String, CimSessionOptions) |
CreateAsync(String)
public:
static Microsoft::Management::Infrastructure::Generic::CimAsyncResult<Microsoft::Management::Infrastructure::CimSession ^> ^ CreateAsync(System::String ^ computerName);
public static Microsoft.Management.Infrastructure.Generic.CimAsyncResult<Microsoft.Management.Infrastructure.CimSession> CreateAsync (string computerName);
static member CreateAsync : string -> Microsoft.Management.Infrastructure.Generic.CimAsyncResult<Microsoft.Management.Infrastructure.CimSession>
Public Shared Function CreateAsync (computerName As String) As CimAsyncResult(Of CimSession)
Parameters
- computerName
- String
Returns
Applies to
CreateAsync(String, CimSessionOptions)
public:
static Microsoft::Management::Infrastructure::Generic::CimAsyncResult<Microsoft::Management::Infrastructure::CimSession ^> ^ CreateAsync(System::String ^ computerName, Microsoft::Management::Infrastructure::Options::CimSessionOptions ^ sessionOptions);
public static Microsoft.Management.Infrastructure.Generic.CimAsyncResult<Microsoft.Management.Infrastructure.CimSession> CreateAsync (string computerName, Microsoft.Management.Infrastructure.Options.CimSessionOptions sessionOptions);
static member CreateAsync : string * Microsoft.Management.Infrastructure.Options.CimSessionOptions -> Microsoft.Management.Infrastructure.Generic.CimAsyncResult<Microsoft.Management.Infrastructure.CimSession>
Public Shared Function CreateAsync (computerName As String, sessionOptions As CimSessionOptions) As CimAsyncResult(Of CimSession)
Parameters
- computerName
- String
- sessionOptions
- CimSessionOptions