Export (0) Print
Expand All

CommittableTransaction.EndCommit Method

Note: This method is new in the .NET Framework version 2.0.

Ends an attempt to commit the transaction asynchronously.

Namespace: System.Transactions
Assembly: System.Transactions (in system.transactions.dll)

public void EndCommit (
	IAsyncResult asyncResult
)
public void EndCommit (
	IAsyncResult asyncResult
)
public function EndCommit (
	asyncResult : IAsyncResult
)

Parameters

asyncResult

The IAsyncResult object associated with the asynchronous commitment.

Exception typeCondition

TransactionAbortedException

BeginCommit is called and the transaction rolls back for the first time.

You should call this method in the callback delegate specified as a parameter to the BeginCommit method, when you have finished any cleanup work associated with the asynchronous commitment. You can also call this method early without waiting for the delegate. If, by the time you call this method, the transaction has not completed, this method waits for its completion.

Caution noteCaution

The CompletedSynchronously property returned by asyncResult is always false, even if the operation completed synchronously.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft