Commits the transaction, waiting for participants to be notified of the decision.
Declaration Syntax
C# | Visual Basic | Visual C++ | J# |
void Commit( long timeout )
Sub Commit ( _ timeout As Long _ )
void Commit( long long timeout )
void Commit( long timeout )
Parameters
- timeout (Int64)
- Time to wait, from the start of the call until all participants have been notified of the transaction manager's decision.
Exceptions
Exception | Condition |
---|---|
UnknownTransactionException |
The transaction is unknown to the manager.
This may be because the transaction ID was incorrect, or because the transaction
has proceeded to cleanup due to an earlier commit or abort, and has been forgotten.
|
CannotCommitException | The transaction has already been aborted. |
TimeoutExpiredException |
The timeout expired before all participants have been notified.
|