Published
- 1 min read
c# get username
The solution for this is noted below
c# get username
Solution
string userName = System.Security.Principal.WindowsIdentity.GetCurrent().Name;
Try other methods by searching on the site. That is if this doesn’t work