.NET Framework (current version)
Gets or sets the amount of time a read operation blocks waiting for data.
System (in System.dll)
Public Overrides Property ReadTimeout As Integer
A Int32 that specifies the amount of time that elapses before a synchronous read operation fails.
This property returns the value returned by invoking ReadTimeout 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 timeout.
The following code example demonstrates setting the value of this property.
No code example is currently available or this language may not be supported.
Return to top
Available since 2.0