ComputerInfo.CsUserName Property
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.
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