Send(Object,MessageQueueTransactionType) Method
Sends an object to the queue referenced by this MessageQueue.
Syntax
'Declaration Public Overloads Sub Send( _ ByVal obj As Object, _ ByVal transactionType As MessageQueueTransactionType _ )
'Usage Dim instance As MessageQueue Dim obj As Object Dim transactionType As MessageQueueTransactionType instance.Send(obj, transactionType)
public void Send( object obj, MessageQueueTransactionType transactionType )
public: void Send( Object^ obj, MessageQueueTransactionType transactionType )
Parameters
- obj
- The object to send to the queue.
- transactionType
- One of the MessageQueueTransactionType values, describing the type of transaction context to associate with the message.
Exceptions
Exception | Description |
---|---|
System.ComponentModel.InvalidEnumArgumentException | The transactionType parameter is not one of the MessageQueueTransactionType members. |
MessageQueueException | The Path property has not been set.-or- An error occurred when accessing a Message Queuing method. |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also