CimSession.Create Method (String, CimSessionOptions)

 

Initializes a new instance of the CimSession class.

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

Syntax

public static CimSession Create(
    string computerName,
    CimSessionOptions sessionOptions
)
public:
static CimSession^ Create(
    String^ computerName,
    CimSessionOptions^ sessionOptions
)
static member Create : 
        computerName:string *
        sessionOptions:CimSessionOptions -> CimSession
Public Shared Function Create (
    computerName As String,
    sessionOptions As CimSessionOptions
) As 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.CimSession

The newly created CimSession object.

See Also

Create Overload
CimSession Class
Microsoft.Management.Infrastructure Namespace

Return to top