Gets or sets the length of time before the request times out.
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.
Type Reason ArgumentOutOfRangeException A value less than zero and not equal to System.Threading.Timeout.Infinite is specified for a set operation.
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.
Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0