System.Net.HttpWebRequest.ReadWriteTimeout Property

Gets or sets a time-out in milliseconds when writing to or reading from a stream.

Syntax

public int ReadWriteTimeout { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

The HttpWebRequest.ReadWriteTimeout property is used when writing to the stream returned by the HttpWebRequest.GetRequestStream method or reading from the stream returned by the HttpWebResponse.GetResponseStream method.

Specifically, the HttpWebRequest.ReadWriteTimeout property controls the time-out for the System.IO.Stream.Read(Byte[], int, int) method, which is used to read the stream returned by the HttpWebResponse.GetResponseStream method, and for the System.IO.Stream.Write(Byte[], int, int) method, which is used to write to the stream returned by the HttpWebRequest.GetRequestStream method.

To specify the amount of time to wait for the request to complete, use the HttpWebRequest.Timeout property.

Requirements

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