SocketsHttpHandler.ConnectTimeout Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the timespan to wait before the connection establishing times out.
public:
property TimeSpan ConnectTimeout { TimeSpan get(); void set(TimeSpan value); };
public TimeSpan ConnectTimeout { get; set; }
member this.ConnectTimeout : TimeSpan with get, set
Public Property ConnectTimeout As TimeSpan
Property Value
The timespan to wait before the connection establishing times out. The default value is InfiniteTimeSpan.
Exceptions
The timeout specified is less than or equal to zero and is not InfiniteTimeSpan
-or-
The timeout specified is greater than MaxValue milliseconds.
An operation has already been started on the current instance.
The current instance has been disposed.