This documentation is archived and is not being maintained.

DirectorySearcher.ServerPageTimeLimit Property

Gets or sets the time limit the server should observe to search an individual page of results (as opposed to the time limit for the entire search).

[Visual Basic]
Public Property ServerPageTimeLimit As TimeSpan
public TimeSpan ServerPageTimeLimit {get; set;}
public: __property TimeSpan get_ServerPageTimeLimit();
public: __property void set_ServerPageTimeLimit(TimeSpan);
public function get ServerPageTimeLimit() : TimeSpan;
public function set ServerPageTimeLimit(TimeSpan);

Property Value

A TimeSpan that represents the amount of time the server should observe to search a page of results. The default is -1, which means to search indefinitely.


When the time limit is reached, the server stops searching and returns the result obtained up to that point, along with a cookie containing the information about where to resume searching.

A negative value means to search indefinitely.

Note   This property only applies to searches where PageSize is set to a value that is not the default of -1.


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 | PageSize | TimeSpan