Export (0) Print
Expand All
0 out of 5 rated this helpful - Rate this topic

DirectorySearcher.PageSize Property

Gets or sets a value indicating the page size in a paged search.

Namespace: System.DirectoryServices
Assembly: System.DirectoryServices (in system.directoryservices.dll)

public int PageSize { get; set; }
/** @property */
public int get_PageSize ()

/** @property */
public void set_PageSize (int value)

public function get PageSize () : int

public function set PageSize (value : int)

Not applicable.

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 typeCondition

ArgumentException

The new value is less than zero.

After the server has found the number of objects that are specified by the PageSize property, 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.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.