Export (0) Print
Expand All
Expand Minimize
0 out of 1 rated this helpful - Rate this topic

QueueClient.Send Method

Sends a message using the InternalSender().

Namespace:  Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)
public void Send(
	BrokeredMessage message
)

Parameters

message
Type: Microsoft.ServiceBus.Messaging.BrokeredMessage
The message to send.
ExceptionCondition
TimeoutException

Thrown when operation times out. Timeout period is initialized through the MessagingFactorySettings may need to increase the value of OperationTimeout to avoid this exception if timeout value is relatively low.

ArgumentException

Thrown when the BrokeredMessage is null.

InvalidOperationException

Thrown if the message has already been sent by a QueueClient or MessageSender once already.

InvalidOperationException

Thrown if the topic/subscription pointed to does not support the send operation. That is, Deadletter queue does not support send operations.

OperationCanceledException

Thrown if the client entity has been closed or aborted.

UnauthorizedAccessException

Thrown if there is an I/O or security error.

SerializationException

Thrown when an error occurs during serialization or deserialization.

MessagingEntityNotFoundException

Thrown if the queue does not exist.

MessagingException

Thrown if there is a messaging error.

Note that a message should not be disposed if a send operation is still in progress.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.