HttpWebRequest.Timeout Property
Gets or sets the timeout value in milliseconds for the GetResponse and GetRequestStream methods.
Namespace: System.Net
Assembly: System (in system.dll)
public override int Timeout { get; set; }
The number of milliseconds to wait before the request times out. The default is 100,000 milliseconds (100 seconds). Valid values: a nonnegative integer or Timeout.Infinite.
Overrides the WebRequest.Timeout property.
Exception type | Condition |
---|---|
ArgumentOutOfRangeException | The Timeout is not a valid value. |
Available in the .NET Micro Framework versions 4.0, 4.1, and 4.2.
HttpWebRequest Class
HttpWebRequest Members
System.Net Namespace