Sends an object to the queue referenced by this MessageQueue. The object will be serialized using the formatter provided.
[Visual Basic] Overloads Overridable Public Sub Send( _ ByVal obj As Object, _ ByVal label As String _ ) [C#] public virtual void Send( object obj, string label ); [C++] public: virtual void Send( Object* obj, String* label ); [JScript] public function Send( obj : Object, label : String );
Exception Type | Condition |
---|---|
MessageQueueException | The attempt to retrieve queue information generated an exception specified by the given status. |
MessageQueue Class | MessageQueue Members | System.Messaging Namespace | MessageQueue.Send Overload List