MessageQueueTransaction.Commit Method
Definition
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 ()
Exceptions
The transaction you are trying to commit has not started.
An internal Message Queuing error occurs.
Remarks
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.
Applies to
See also
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για