共用方式為


SqlRetryingEventArgs.Cancel 屬性

定義

取得或設定值,這個值表示是否應該取消重試邏輯。

public:
 property bool Cancel { bool get(); void set(bool value); };
public bool Cancel { get; set; }
member this.Cancel : bool with get, set
Public Property Cancel As Boolean

屬性值

如果設定為 true ,則會立即中斷執行嘗試。

適用於