CommitFailureHandler.PruneTransactionHistory 方法

定义

重载

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 ,将使用关联的执行策略执行操作

适用于