Search This Blog

Wednesday, September 17, 2014

Environment UserName property C# example

C#  > System > Environment ClassUserName

UserName is used to identify the user on the current thread, the user name of the person who is logged on to Windows.

Example



  string user = Environment.UserName;