ServiceBusMessage Constructors

Definition

Overloads

ServiceBusMessage()

Creates a new message.

ServiceBusMessage(AmqpAnnotatedMessage)

Creates a new message from the specified AmqpAnnotatedMessage instance.

ServiceBusMessage(ServiceBusReceivedMessage)

Creates a new message from the specified received message by copying the properties.

ServiceBusMessage(BinaryData)

Creates a new message from the specified BinaryData instance.

ServiceBusMessage(ReadOnlyMemory<Byte>)

Creates a new message from the specified payload.

ServiceBusMessage(String)

Creates a new message from the specified string, using UTF-8 encoding.

ServiceBusMessage()

Source:
ServiceBusMessage.cs

Creates a new message.

public ServiceBusMessage ();
Public Sub New ()

Applies to

ServiceBusMessage(AmqpAnnotatedMessage)

Source:
ServiceBusMessage.cs

Creates a new message from the specified AmqpAnnotatedMessage instance.

public ServiceBusMessage (Azure.Core.Amqp.AmqpAnnotatedMessage message);
new Azure.Messaging.ServiceBus.ServiceBusMessage : Azure.Core.Amqp.AmqpAnnotatedMessage -> Azure.Messaging.ServiceBus.ServiceBusMessage
Public Sub New (message As AmqpAnnotatedMessage)

Parameters

message
AmqpAnnotatedMessage

The AMQP message.

Applies to

ServiceBusMessage(ServiceBusReceivedMessage)

Source:
ServiceBusMessage.cs

Creates a new message from the specified received message by copying the properties.

public ServiceBusMessage (Azure.Messaging.ServiceBus.ServiceBusReceivedMessage receivedMessage);
new Azure.Messaging.ServiceBus.ServiceBusMessage : Azure.Messaging.ServiceBus.ServiceBusReceivedMessage -> Azure.Messaging.ServiceBus.ServiceBusMessage
Public Sub New (receivedMessage As ServiceBusReceivedMessage)

Parameters

receivedMessage
ServiceBusReceivedMessage

The received message to copy the data from.

Applies to

ServiceBusMessage(BinaryData)

Source:
ServiceBusMessage.cs

Creates a new message from the specified BinaryData instance.

public ServiceBusMessage (BinaryData body);
new Azure.Messaging.ServiceBus.ServiceBusMessage : BinaryData -> Azure.Messaging.ServiceBus.ServiceBusMessage
Public Sub New (body As BinaryData)

Parameters

body
BinaryData

The payload of the message.

Applies to

ServiceBusMessage(ReadOnlyMemory<Byte>)

Source:
ServiceBusMessage.cs

Creates a new message from the specified payload.

public ServiceBusMessage (ReadOnlyMemory<byte> body);
new Azure.Messaging.ServiceBus.ServiceBusMessage : ReadOnlyMemory<byte> -> Azure.Messaging.ServiceBus.ServiceBusMessage
Public Sub New (body As ReadOnlyMemory(Of Byte))

Parameters

body
ReadOnlyMemory<Byte>

The payload of the message in bytes.

Applies to

ServiceBusMessage(String)

Source:
ServiceBusMessage.cs

Creates a new message from the specified string, using UTF-8 encoding.

public ServiceBusMessage (string body);
new Azure.Messaging.ServiceBus.ServiceBusMessage : string -> Azure.Messaging.ServiceBus.ServiceBusMessage
Public Sub New (body As String)

Parameters

body
String

The payload of the message as a string.

Applies to