Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Gets or sets the amount of time that a read operation blocks waiting for data.
Namespace: System.Net.Sockets
Assembly: System (in System.dll)
Syntax
'Declaration
Public Overrides Property ReadTimeout As Integer
public override int ReadTimeout { get; set; }
public:
virtual property int ReadTimeout {
int get () override;
void set (int value) override;
}
abstract ReadTimeout : int with get, set
override ReadTimeout : int with get, set
override function get ReadTimeout () : int
override function set ReadTimeout (value : int)
Property Value
Type: System. . :: . .Int32
A Int32 that specifies the amount of time, in milliseconds, that will elapse before a read operation fails. The default value, Infinite, specifies that the read operation does not time out.
Remarks
If the read operation does not complete within the time specified by this property, the read operation throws an IOException.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.