NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

SystemInformation.UserName

Retrieves the user name of the current thread. This is the name of the user currently logged onto the system.

[Visual Basic]
Public Shared ReadOnly Property UserName As String
[C#]
public static string UserName {get;}
[C++]
public: __property static String* get_UserName();
[JScript]
public static function get UserName() : String;

Property Value

the current user name.

See Also

SystemInformation Class | SystemInformation Members | System.WinForms Namespace