SocketsHttpHandler.ConnectTimeout Property

Definition

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.

Applies to