Assembly: System.Transactions (in system.transactions.dll)
'Declaration Public Sub EndCommit ( _ asyncResult As IAsyncResult _ ) 'Usage Dim instance As CommittableTransaction Dim asyncResult As IAsyncResult instance.EndCommit(asyncResult)
The IAsyncResult object associated with the asynchronous commitment.
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.
The CompletedSynchronously property returned by asyncResult is always false, even if the operation completed synchronously.
Commit and EndCommit block until the first phase of transaction processing is complete. The first phase ends after all resource managers and enlistments in the transaction have voted on the transaction outcome and the TransactionManager has durably decided to commit or abort the transaction. The second phase of processing is always asynchronous. Therefore, there is no guarantee that data just committed from within a given transaction will be immediately available afterwards when not using another transaction to view this data.
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter EditionThe Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.