User Profile
Collapse
Profile Sidebar
Collapse
drastogi
Last Activity: Jun 6 '16, 09:47 PM
Joined: Jan 7 '16
Location:
-
And SizeLimit i am defining when i create an object of DirectorySearch er class -
...Code:private SearchResultCollection ExecuteBestEffortSearch(DirectorySearcher searcher) { if (searcher == null) { throw new ArgumentNullException("searcher"); } if (searcher.SearchRoot == null) { throw new ArgumentException("Directory Searcher does not have a search root.", "searcher"); } // Construct Search Message string message = String.Format("[{0}]Last edited by Rabbit; Jan 7 '16, 10:50 PM. Reason: Please use [code] and [/code] tags when posting code or formatted data.Leave a comment:
-
Code:try { searcher.SizeLimit=15000; searcher.PageSize = 1000; return searcher.FindAll(); }Last edited by Rabbit; Jan 7 '16, 10:50 PM. Reason: Please use [code] and [/code] tags when posting code or formatted data.Leave a comment:
-
retrieving 1000+ users from AD group using C#
I am trying to retrieve 5000 users from AD group, but when I set PageSize= 1000 (or let's say 15000) and SizeLimit=15000 , I still get only 1500 users. Any other configuration that I can set (I want to avoid range retrieval as suggested by MS) Please advice. Thanks Below is the code section: Please let me know what am I missing.
No activity results to display
Show More
Leave a comment: