CommitFailureHandler.ClearTransactionHistoryAsync Method

[This page is specific to the Entity Framework version 6. The latest version is available as the 'Entity Framework' NuGet package. For more information about Entity Framework, see msdn.com/data/ef.]

Asynchronously removes all the transaction history.

Namespace:  System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

Syntax

'Declaration
Public Function ClearTransactionHistoryAsync As Task
'Usage
Dim instance As CommitFailureHandler 
Dim returnValue As Task 

returnValue = instance.ClearTransactionHistoryAsync()
public Task ClearTransactionHistoryAsync()
public:
Task^ ClearTransactionHistoryAsync()
member ClearTransactionHistoryAsync : unit -> Task
public function ClearTransactionHistoryAsync() : Task

Return Value

Type: System.Threading.Tasks.Task
A task that represents the asynchronous operation.

Remarks

This method should only be invoked when there are no active transactions to remove any leftover history that was not deleted due to catastrophic failures

See Also

Reference

CommitFailureHandler Class

ClearTransactionHistoryAsync Overload

System.Data.Entity.Infrastructure Namespace