Partilhar via


SocketsHttpHandlerOptions.ConnectTimeout Property

Definition

Gets or sets the length of time (in seconds) to wait for a connection to the server before terminating the attempt and generating an error.

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 default value is 10 seconds. 100 minutes is the max timeout value in Azure SLB.

Applies to