Stream.CanTimeout プロパティ
定義
現在のストリームがタイムアウトできるかどうかを決定する値を取得します。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
プロパティ値
現在のストリームがタイムアウトできるかどうかを決定する値。A value that determines whether the current stream can time out.
- 属性
注釈
CanTimeout プロパティは常に false
を返します。The CanTimeout property always returns false
. 一部のストリーム実装では NetworkStream 、ネットワーク接続が中断されたり失われたりした場合にタイムアウトとなるなど、異なる動作が必要になります。Some stream implementations require different behavior, such as NetworkStream, which times out if network connectivity is interrupted or lost. タイムアウトできる必要があるストリームを実装する場合は、を返すようにこのプロパティをオーバーライドする必要があり true
ます。If you are implementing a stream that must be able to time out, this property should be overridden to return true
.