IDbCommand.CommandTimeout 屬性

定義

在終止執行指令並產生錯誤前,取得或設定等待時間。

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。

適用於