Current user

  • Thread starter Thread starter Tarllem
  • Start date Start date
Hi,

You know how to request the user name of the active login?

System.Environment.UserName. That will get you the name of the person who
started the current thread.

There's also System.Security.Principal.WindowsIdentity.GetCurrent(). This
gets you the WindowsIdentity object that represents the current Windows
user. You can then access the Name property.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top