T_MAV

导航

 

WindowsIdentity identity = WindowsIdentity.GetCurrent();
string userName = identity.Name;

注:webconfig配置为<authentication mode="Windows"/>

  IIS身份验证为Windows身份验证

posted on 2020-01-08 16:36  带投一哥  阅读(233)  评论(0)    收藏  举报