Stream.ReadTimeout 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會取得或設定一個以毫秒為單位的值,決定串流在逾時前嘗試讀取的時間長短。
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
屬性值
一個以毫秒為單位的數值,決定串流嘗試讀取的時間長短,然後逾時。
- 屬性
例外狀況
給繼承者的注意事項
ReadTimeout該屬性應該被覆寫,以提供適合溪流的行為。 若串流不支援逾時,此性質應產生 InvalidOperationException。