OdbcCommand.CommandTimeout 屬性

定義

取得或設定結束執行命令的嘗試並產生錯誤之前的等待時間 (以秒為單位)。

public:
 virtual property int CommandTimeout { int get(); void set(int value); };
public:
 property int CommandTimeout { int get(); void set(int value); };
public override int CommandTimeout { get; set; }
public int CommandTimeout { get; set; }
member this.CommandTimeout : int with get, set
Public Overrides Property CommandTimeout As Integer
Public Property CommandTimeout As Integer

屬性值

等待命令執行的時間 (以秒為單位)。 預設值為 30 秒。

實作

備註

零 (0 的值) 指定等候時間沒有限制,而不是沒有等候時間,因此應該避免。

適用於

另請參閱