asp.net 获得当前用户

导入  using System.Security.Principal;

WindowsPrincipal wp=new WindowsPrincipal(WindowsIdentity.GetCurrent());
    
    wp.Identity.Name

 

你可能感兴趣的:(asp.net 获得当前用户)