Export (0) Print
Expand All

DirectorySearcher.PageSize Property

Gets or sets the page size in a paged search.

[Visual Basic]
Public Property PageSize As Integer
[C#]
public int PageSize {get; set;}
[C++]
public: __property int get_PageSize();
public: __property void set_PageSize(int);
[JScript]
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.

Exceptions

Exception Type Condition
ArgumentException PageSize is less than zero.

Remarks

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.

Requirements

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

Show:
© 2015 Microsoft