Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
PageSize Property

DirectorySearcher.PageSize Property

Gets or sets the page size in a paged search.

[Visual Basic]
Public Property PageSize As Integer
public int PageSize {get; set;}
public: __property int get_PageSize();
public: __property void set_PageSize(int);
public function get PageSize() : int;
public function set PageSize(int);

Property Value

The maximum number of objects the server can return in a paged search. The default is zero, which means do not do a paged search.


Exception Type Condition
ArgumentException PageSize is less than zero.


After the server has found a PageSize object, it will stop searching and return the results to the client. When the client requests more data, the server will restart the search where it left off.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

DirectorySearcher Class | DirectorySearcher Members | System.DirectoryServices Namespace

© 2015 Microsoft