System.Messaging Reference (Document! X Sample)
System.Messaging Namespace / MessageQueue Class / Send Method / Send(Object,MessageQueueTransaction) Method
The object to send to the queue.
The MessageQueueTransaction object.



In This Topic
    Send(Object,MessageQueueTransaction) Method
    In This Topic
    Sends an object to the transactional queue referenced by this MessageQueue.
    Syntax
    'Declaration
     
    
    Public Overloads Sub Send( _
       ByVal obj As Object, _
       ByVal transaction As MessageQueueTransaction _
    ) 
    'Usage
     
    
    Dim instance As MessageQueue
    Dim obj As Object
    Dim transaction As MessageQueueTransaction
     
    instance.Send(obj, transaction)

    Parameters

    obj
    The object to send to the queue.
    transaction
    The MessageQueueTransaction object.
    Exceptions
    ExceptionDescription
    The transaction parameter is null.
    The Path property has not been set.-or- The Message Queuing application indicated an incorrect transaction use.-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