Stream.CanTimeout Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value that determines whether the current stream can time out.
public:
virtual property bool CanTimeout { bool get(); };
public virtual bool CanTimeout { get; }
[System.Runtime.InteropServices.ComVisible(false)]
public virtual bool CanTimeout { get; }
member this.CanTimeout : bool
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.CanTimeout : bool
Public Overridable ReadOnly Property CanTimeout As Boolean
Property Value
A value that determines whether the current stream can time out.
- Attributes
Remarks
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
.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om