System.Messaging Reference (Document! X Sample)
Send(Object,String) Method



System.Messaging Namespace > MessageQueue Class > Send Method : Send(Object,String) Method
The object to send to the queue.
The label of the message.
Sends an object to the non-transactional 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 _
) 
'Usage
 
Dim instance As MessageQueue
Dim obj As Object
Dim label As String
 
instance.Send(obj, label)
public void Send( 
   object obj,
   string label
)
public:
void Send( 
   Object^ obj,
   String^ label
) 

Parameters

obj
The object to send to the queue.
label
The label of the message.
Exceptions
ExceptionDescription
The label parameter is null.
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

Reference

MessageQueue Class
MessageQueue Members
Overload List