IDbCommand.CommandTimeout 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在終止執行指令並產生錯誤前,取得或設定等待時間。
public:
property int CommandTimeout { int get(); void set(int value); };
public int CommandTimeout { get; set; }
member this.CommandTimeout : int with get, set
Public Property CommandTimeout As Integer
屬性值
等待指令執行的時間(以秒計)。 預設值為 30 秒。
備註
Exceptions
| 例外狀況類型 | 狀況 |
|---|---|
| ArgumentException | 分配的房產價值小於0。 |