CommitFailureHandler.PruneTransactionHistory 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
,将使用关联的执行策略执行操作