System.Messaging Reference (Document! X Sample)
System.Messaging Namespace / MessageQueue Class / Send Method / Send(Object,String,MessageQueueTransactionType) Method
The object to send to the queue.
The label of the message.
One of the MessageQueueTransactionType values, describing the type of transaction context to associate with the message.



In This Topic
    Send(Object,String,MessageQueueTransactionType) Method
    In This Topic
    Sends an object to the queue referenced by this MessageQueue and specifies a label for the message.
    Syntax
    'Declaration
     
    
    Public Overloads Sub Send( _
       ByVal obj As Object, _
       ByVal label As String, _
       ByVal transactionType As MessageQueueTransactionType _
    ) 
    'Usage
     
    
    Dim instance As MessageQueue
    Dim obj As Object
    Dim label As String
    Dim transactionType As MessageQueueTransactionType
     
    instance.Send(obj, label, transactionType)

    Parameters

    obj
    The object to send to the queue.
    label
    The label of the message.
    transactionType
    One of the MessageQueueTransactionType values, describing the type of transaction context to associate with the message.
    Exceptions
    ExceptionDescription
    The label parameter is null.
    The Message Queuing application indicated an incorrect transaction usage.
    The transactionType parameter is not one of the MessageQueueTransactionType members.
    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