Stream.ReadTimeout プロパティ
定義
ストリームがタイムアウト前に読み取りを試みる期間を決定する値 (ミリ秒単位) を取得または設定します。Gets or sets a value, in milliseconds, that determines how long the stream will attempt to read before timing out.
public:
virtual property int ReadTimeout { int get(); void set(int value); };
public virtual int ReadTimeout { get; set; }
[System.Runtime.InteropServices.ComVisible(false)]
public virtual int ReadTimeout { get; set; }
member this.ReadTimeout : int with get, set
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.ReadTimeout : int with get, set
Public Overridable Property ReadTimeout As Integer
プロパティ値
ストリームがタイムアウト前に読み取りを試みる期間を決定する値 (ミリ秒単位)。A value, in milliseconds, that determines how long the stream will attempt to read before timing out.
- 属性
例外
ReadTimeout メソッドは、常に InvalidOperationException をスローします。The ReadTimeout method always throws an InvalidOperationException.
注意 (継承者)
ReadTimeoutストリームに適切な動作を提供するには、プロパティをオーバーライドする必要があります。The ReadTimeout property should be overridden to provide the appropriate behavior for the stream. ストリームがタイムアウトをサポートしていない場合、このプロパティはを発生させる必要があり InvalidOperationException ます。If the stream does not support timing out, this property should raise an InvalidOperationException.