Skip to content

QueueTransaction

busterwood edited this page Jan 2, 2018 · 1 revision

Create a new QueueTransaction when reading from transactional queues or writing messages to transactional queues.

Note that use can use one of the following static fields:

  • None (or null) for non-transactional queues
  • Single for single message transactions
  • Dtc to use the ambient System.Transactions.TransactionScope transaction

Methods:

  • Commit() to commit the transaction
  • Abort() to rollback the transaction
  • Dispose() to abort the transaction if it has not been committed.
Clone this wiki locally