Alex Rivera | Logout

How do I get the current username in .NET using C#?

Asked 2009-08-06T17:40:27.813
752

How do I get the current username in .NET using C#?

Edit
Report

1 Answer

131

Try the property: Environment.UserName.

answered 2009-08-06T17:41:15.470

Your Answer