C# DirectorySearcher search result more than 1000

When searching Active directory, DirectorySearcher will be used to retrieve information from Active Directory.

Below is the code that gets the username information.

 

 

However, by default, only 1000 can be viewed.

To do this, you can use the property PageSize in DirectorySearcher.

It can be used as follows.

 

 

It is possible to input up to 32 bits INT size, but please input the appropriate number.

 

 

Facebook Comments

Leave A Reply

이메일은 공개되지 않습니다. 필수 입력창은 * 로 표시되어 있습니다

This site uses Akismet to reduce spam. Learn how your comment data is processed.