how to get username

  • Thread starter Thread starter ALI-R
  • Start date Start date
A

ALI-R

How can I get the username that a user has logged in with to windows ,in my
code?

thanks
 
ALI-R,

You can use the static UserName property on the Environment class to get
this information.

Hope this helps.
 

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