CommitFailureHandler.PruneTransactionHistoryAsync 方法 (CancellationToken)
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
以非同步方式移除已標記要刪除的交易。
命名空間: System.Data.Entity.Infrastructure
組件: EntityFramework (在 EntityFramework.dll 中)
語法
'宣告
Public Function PruneTransactionHistoryAsync ( _
cancellationToken As CancellationToken _
) As Task
'用途
Dim instance As CommitFailureHandler
Dim cancellationToken As CancellationToken
Dim returnValue As Task
returnValue = instance.PruneTransactionHistoryAsync(cancellationToken)
public Task PruneTransactionHistoryAsync(
CancellationToken cancellationToken
)
public:
Task^ PruneTransactionHistoryAsync(
CancellationToken cancellationToken
)
member PruneTransactionHistoryAsync :
cancellationToken:CancellationToken -> Task
public function PruneTransactionHistoryAsync(
cancellationToken : CancellationToken
) : Task
參數
- cancellationToken
類型:System.Threading.CancellationToken
取消語彙基元。
傳回值
類型:System.Threading.Tasks.Task
表示非同步作業的工作。