Winforms version of User.Identity.Name

E

Elmo Watson

In Webforms, I can access the user's network login (windows authentication)
by:
User.Identity.Name

What is the Winforms way of doing this?
 
M

Mattias Sjögren

In Webforms, I can access the user's network login (windows authentication)
by:
User.Identity.Name

What is the Winforms way of doing this?


WindowsIdentity.GetCurrent().Name


Mattias
 

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

Top