DbBatch.Timeout 屬性

定義

取得或設定 (以) 秒為單位的等候時間,再終止嘗試執行批次併產生錯誤。

public:
 abstract property int Timeout { int get(); void set(int value); };
public abstract int Timeout { get; set; }
member this.Timeout : int with get, set
Public MustOverride Property Timeout As Integer

屬性值

等候批次執行的時間,以秒為單位。

備註

ArgumentException如果指定Timeout屬性值小於 0, 就會產生 。

請注意實作者:建議 0 表示沒有逾時。

適用於