Language

TopicClient.Send(BrokeredMessage) Method

Definition

Sends a message using the Microsoft.ServiceBus.Messaging.TopicClient.InternalSender.

public void Send(Microsoft.ServiceBus.Messaging.BrokeredMessage message);
abstract member Send : Microsoft.ServiceBus.Messaging.BrokeredMessage -> unit
override this.Send : Microsoft.ServiceBus.Messaging.BrokeredMessage -> unit
Public Sub Send (message As BrokeredMessage)

Parameters

message
BrokeredMessage

The message to send.

Exceptions

System.TimeoutException

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

System.ArgumentException

Thrown when the BrokeredMessage is null.

System.InvalidOperationException

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

System.OperationCanceledException

Thrown if the client entity has been closed or aborted.

System.UnauthorizedAccessException

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

System.Runtime.Serialization.SerializationException

Thrown when an error occurs during serialization or deserialization.

Thrown if the topic does not exist.

Thrown if there is a messaging error.

Applies to