CommitFailureHandler.PruneTransactionHistory 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| PruneTransactionHistory() |
移除標記為刪除交易。 |
| PruneTransactionHistory(Boolean, Boolean) |
若交易數量超過 PruningLimit,則移除標記刪除的交易。 |
PruneTransactionHistory()
移除標記為刪除交易。
public void PruneTransactionHistory();
member this.PruneTransactionHistory : unit -> unit
Public Sub PruneTransactionHistory ()
適用於
PruneTransactionHistory(Boolean, Boolean)
若交易數量超過 PruningLimit,則移除標記刪除的交易。
protected virtual void PruneTransactionHistory(bool force, bool useExecutionStrategy);
abstract member PruneTransactionHistory : bool * bool -> unit
override this.PruneTransactionHistory : bool * bool -> unit
Protected Overridable Sub PruneTransactionHistory (force As Boolean, useExecutionStrategy As Boolean)
參數
- force
- Boolean
若設定為 , true 即使交易數量不超過 PruningLimit,也會移除所有舊交易。
- useExecutionStrategy
- Boolean
若設定為 true ,則 將使用相應的執行策略執行