我刚刚注意到结果的返回列表被限制为1000个。我在我的域(巨大的域)中有1000多个组。怎样才能得到1000条以上的记录?我可以从以后的记录开始吗?我能把它分成多个搜索吗?
下面是我的问题:
DirectoryEntry dirEnt = new DirectoryEntry("LDAP://dhuba1kwtn004");
string[] loadProps = new string[] { "cn", "samaccountname", "name", "distinguishedname" };
DirectorySearcher srch = new DirectorySearcher(dirEnt, "(objectClass=Group)", loadProps);
var results = srch.FindAll();
我曾尝试设置srch.SizeLimit = 2000;,但似乎不起作用。有什么想法吗?
https://stackoverflow.com/questions/90652
复制相似问题