System.Net.Sockets.NetworkStream.ReadTimeout Property

Gets or sets the amount of time that a read operation blocks waiting for data.

Syntax

public override int ReadTimeout { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

If the read operation does not complete within the time specified by this property, the read operation throws an System.IO.IOException.

Note:

This property affects only synchronous reads performed by calling the NetworkStream.Read(Byte[], int, int) method. This property does not affect asynchronous reads performed by calling the NetworkStream.BeginRead(Byte[], int, int, AsyncCallback, object) method.

Requirements

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