MessageQueueTransactionType Enumeration
This documentation is archived and is not being maintained.

MessageQueueTransactionType Enumeration

Specifies the type of a Message Queuing transaction.

[Visual Basic]
Public Enum MessageQueueTransactionType
public enum MessageQueueTransactionType
__value public enum MessageQueueTransactionType
enum MessageQueueTransactionType


When you read or write a message using an overload of the MessageQueue class's Send or Receive methods (including ReceiveById and ReceiveByCorrelationId) that takes a transactionType parameter, you can specify how you are interacting with the queue. Automatic enables you to send and receive from external transactions (such as when you are interacting with database applications), while Single is used for single internal Message Queuing transactions.

None enables you to receive a message from a transactional queue outside of a transaction or send a transactional message to a nontransactional queue. This is useful, for example, when routing several messages sent within a single transaction.

If you want to send or receive a message using an internal Message Queuing transaction but not a single internal transaction, create an instance of the MessageQueueTransaction class and pass it into an overload of the Send or Receive methods that takes a transaction parameter rather than one that takes a transactionType parameter.


Member name Description
Automatic A transaction type used for Microsoft Transaction Server (MTS) or COM+ 1.0 Services. If there is already an MTS transaction context, it will be used when sending or receiving the message.
None Operation will not be transactional.
Single A transaction type used for single internal transactions.


Namespace: System.Messaging

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System.Messaging (in System.Messaging.dll)

See Also

System.Messaging Namespace | MessageQueue.Send | MessageQueue.Receive | MessageQueueTransaction

© 2016 Microsoft