Get Windows Current UserName in C#

String Username =System.Security.Principal.WindowsIdentity.GetCurrent().Name.ToString();

No comments:

Post a Comment