ReadTimeout Property

SslStream.ReadTimeout Property

 

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

Namespace:   System.Net.Security
Assembly:  System (in System.dll)

Public Overrides Property ReadTimeout As Integer

Property Value

Type: System.Int32

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.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft