User Profile

Collapse

Profile Sidebar

Collapse
drastogi
drastogi
Last Activity: Jun 6 '16, 09:47 PM
Joined: Jan 7 '16
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • And SizeLimit i am defining when i create an object of DirectorySearch er class
    See more | Go to post

    Leave a comment:


  • 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}]
    ...
    See more | Go to post
    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();
    }
    See more | Go to post
    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:


  • drastogi
    started a topic retrieving 1000+ users from AD group using C#
    in .NET

    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.
    See more | Go to post
No activity results to display
Show More
Working...