Applies To: Windows 10, Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Server Technical Preview, Windows Vista

The MSMQTransactionDispenser object is used to start an internal transaction and obtain an MSMQTransaction object that represents the new underlying internal transaction object. The MSMQTransaction object can then be used in calls to send or retrieve messages.

For information on internal transactions, see Message Queuing Internal Transactions.


The MSMQTransactionDispenser object defines the following method.

Method Description
MSMQTransactionDispenser.BeginTransaction Initiates a new internal transaction and returns an MSMQ transaction object that represents the new underlying transaction object.


Windows NT/2000/XP: Included in Windows NT 4.0 SP3 and later.

Windows 95/98/Me: Included in Windows 95 and later.

Header: Declared in Mqoai.h.

Library: Use Mqoa.lib.

See Also

Message Queuing COM Components