Partager via


ComputerInfo.CsUserName Property

Definition

Name of a user that is logged on currently.

public:
 property System::String ^ CsUserName { System::String ^ get(); };
public:
 property Platform::String ^ CsUserName { Platform::String ^ get(); };
public string CsUserName { get; }
member this.CsUserName : string
Public ReadOnly Property CsUserName As String

Property Value

Remarks

In a terminal services session, CsUserName is the name of the user that is logged on to the console—not the user logged on during the terminal service session

Applies to