Stream.CanTimeout Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.IO
Assembly:  mscorlib (in mscorlib.dll)

[<ComVisibleAttribute(false)>]
abstract CanTimeout : bool with get
[<ComVisibleAttribute(false)>]
override CanTimeout : bool with get

Property Value

Type: System.Boolean

A value that determines whether the current stream can time out.

The CanTimeout property always returns false. Some stream implementations require different behavior, such as 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.

Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: