Share via


IConnectionTimeoutFeature.SetTimeout(TimeSpan) Method

Definition

Close the connection after the specified positive finite TimeSpan unless the timeout is canceled or reset. This will fail if there is an ongoing timeout.

public:
 void SetTimeout(TimeSpan timeSpan);
public void SetTimeout (TimeSpan timeSpan);
abstract member SetTimeout : TimeSpan -> unit
Public Sub SetTimeout (timeSpan As TimeSpan)

Parameters

timeSpan
TimeSpan

Applies to