Export (0) Print
Expand All

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
[C#]
public TimeSpan ServerPageTimeLimit {get; set;}
[C++]
public: __property TimeSpan get_ServerPageTimeLimit();
public: __property void set_ServerPageTimeLimit(TimeSpan);
[JScript]
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.

Remarks

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.

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

Show:
© 2014 Microsoft