Partager via


CimSession.ComputerName Property

 

Gets the computer name used to create the current session.

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

Syntax

public string ComputerName { get; private set; }
public:
property String^ ComputerName {
    String^ get();
    private: void set(String^ value);
}
member ComputerName : string with get, private set
Public Property ComputerName As String
    Get
    Private Set
End Property

Property Value

Type: System.String

The computer name used to create the current session.

See Also

CimSession Class
Microsoft.Management.Infrastructure Namespace

Return to top