【发布时间】:2012-04-06 11:13:04
【问题描述】:
我创建了自己的派生 UserPrincipal 类型,用于获取一些扩展的 AD 属性。这很好用。
现在我正在寻找一种方法来使用 groupprincipal 对象的 GetMembers() 方法来返回我的自定义 UserPrincipal 类型的列表。
FindByIdentityWithType 在 UserPrincipal 上的工作方式有点相同,其中有一个重载,您可以在其上指定自己的 PrincipalType。
有没有办法在 GetMembers 方法上做到这一点?
【问题讨论】:
标签: .net active-directory directoryservices userprincipal