【发布时间】:2009-05-29 08:03:46
【问题描述】:
有没有:
字符串名称 = System.DirectoryServices.AccountManagement.UserPrincipal.Current.DisplayName;
.net 2.0 框架中的等价物? 它使用 System.DirectoryServices.AccountManagement (ver 3.5) 参考。我尝试在 .net 2.0 框架上使用该文件,但无济于事。
基本上,我想检索 windows 用户的完整用户名(名字和姓氏)(不是 Request.ServerVariables["REMOTE_USER"],它只提供 windows 用户名)
【问题讨论】:
标签: .net asp.net active-directory directoryservices