SALES: 1-800-867-1380
Send Method

TopicClient.Send Method (BrokeredMessage)

 
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.

Exception Condition
TimeoutException

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

OperationCanceledException

Thrown if the client entity has been closed or aborted.

MessagingException

Thrown if there is a messaging error.

ArgumentException

Thrown when the BrokeredMessage is null.

MessagingEntityNotFoundException

Thrown if the topic does not exist.

SerializationException

Thrown when an error occurs during serialization or deserialization.

UnauthorizedAccessException

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

InvalidOperationException

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

Return to top
Show:
© 2016 Microsoft