CimSession.Create Method (String)

 

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