Gets or sets the maximum amount of time that the client waits for the server to return results. If the server does not respond within this time, the search is aborted and no results are returned.
[Visual Basic] Public Property ClientTimeout As TimeSpan [C#] public TimeSpan ClientTimeout {get; set;} [C++] public: __property TimeSpan get_ClientTimeout(); public: __property void set_ClientTimeout(TimeSpan); [JScript] public function get ClientTimeout() : TimeSpan; public function set ClientTimeout(TimeSpan);
A TimeSpan that represents the maximum amount of time (in seconds) for the client to wait for the server to return results. The default is -1, which means to wait indefinitely.
If the ServerTimeLimit is reached before the client times out, the server returns its results and the client stops waiting. The maximum server time limit is 120 seconds.
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:
DirectorySearcher Class | DirectorySearcher Members | System.DirectoryServices Namespace | ServerTimeLimit | TimeSpan