MessageQueueTransaction.Commit Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Commits a pending internal transaction.
public:
void Commit();
public void Commit();
member this.Commit : unit -> unit
Public Sub Commit ()
The transaction you are trying to commit has not started.
An internal Message Queuing error occurs.
Commit marks the successful completion of processing begun at a call to Begin. If an exception occurs between the call the Begin and the call to Commit, the entire transaction is rolled back. This includes all messages sent or received after the call to Begin.
Typically, one makes a call to Begin within a Try...Catch
exception-handling block, putting a call to Commit in the Try
clause, and a call to Abort in the Catch
clause.
Продукт | Версии |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Обратна връзка за .NET
.NET е проект с отворен код. Изберете връзка, за да предоставите обратна връзка: