相关疑难解决方法(0)

如何获取UserPrincipal类未表示的Active Directory属性

我的意思是,现在我正在使用System.DirectoryServices.AccountManagement,如果我使用UserPrincipal类,我只看到名称,中间名等

所以在我的代码中它就像

UserPrincipal myUser = new UserPrincipal(pc);
myUser.Name = "aaaaaa";
myUser.SamAccountName = "aaaaaaa";
.
.
.
.
myUser.Save();
Run Code Online (Sandbox Code Playgroud)

我怎样才能看到像手机或信息这样的属性?

c# directoryservices active-directory

22
推荐指数
2
解决办法
3万
查看次数

标签 统计

active-directory ×1

c# ×1

directoryservices ×1