System.IO.Stream.CanTimeout Property

Gets a value that determines whether the current stream can time out.

Syntax

[System.Runtime.InteropServices.ComVisible(false)]
public virtual bool CanTimeout { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The Stream.CanTimeout property always returns false. Some stream implementations require different behavior, such as System.Net.Sockets.NetworkStream, which times out if network connectivity is interrupted or lost. If you are implementing a stream that must be able to time out, this property should be overridden to return true.

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0