Mono Class Library: System.Net.HttpWebRequest Overview | Members

System.Net.HttpWebRequest.Timeout Property

Gets or sets the length of time before the request times out. [Edit]

public override int Timeout { set; get; }

Value

A int indicating the number of milliseconds to wait for a response until the request times out, or System.Threading.Timeout.Infinite to indicate that the request does not time out. [Edit]

Exceptions

TypeReason
ArgumentOutOfRangeExceptionA value less than zero and not equal to System.Threading.Timeout.Infinite is specified for a set operation. [Edit]

Remarks

HttpWebRequest.Timeout is the number of milliseconds that a synchronous request made with the HttpWebRequest.GetResponse method waits for a response. If a resource does not respond within the time-out period, the request throws a System.Net.WebException with the WebException.Status property set to WebExceptionStatus.Timeout.

Note: This property overrides WebRequest.Timeout.

[Edit]

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0