Stream.ReadTimeout Property
Gets or sets the amount of time a read operation blocks waiting for data.
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Syntax
public virtual int ReadTimeout { get; set; }
Property Value
A Int32 that specifies the amount of time that will elapse before a read operation fails.
Remarks
This property returns the value returned by invoking the ReadTimeout property on the underlying stream. When you set this property, the ReadTimeout value on the underlying stream is set to the specified value.
If the underlying stream is a NetworkStream, ReadTimeout is in milliseconds and is set to Infinite by default so that read operations do not time out.
Version Information
Available in the .NET Micro Framework versions 3.0, 4.0, and 4.1.