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
Pripomienky
https://aka.ms/ContentUserFeedback.
Pripravujeme: V priebehu roka 2024 postupne zrušíme službu Problémy v službe GitHub ako mechanizmus pripomienok týkajúcich sa obsahu a nahradíme ju novým systémom pripomienok. Ďalšie informácie nájdete na stránke:Odoslať a zobraziť pripomienky pre