3
試圖搜索Active Directory的非空描述對用戶(這意味着他們有一個職位),如下行4見過,但我得到一個錯誤,我無法使用排除!排除在PrincipalSearcher QueryFilter在C#空結果爲Active Directory
建議另一種方法?
PrincipalContext ctx = new PrincipalContext(ContextType.Domain);
UserPrincipal qbeUser = new UserPrincipal(ctx);
PrincipalSearcher srch = new PrincipalSearcher(qbeUser);
var example = new UserPrincipal(ctx) { Description != null };
什麼錯誤信息你好嗎? –