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
Source:
ServiceBusMessage.cs

Creates a new message.

public ServiceBusMessage ();

Applies to

ServiceBusMessage(AmqpAnnotatedMessage)

Source:
ServiceBusMessage.cs
Source:
ServiceBusMessage.cs

Creates a new message from the specified AmqpAnnotatedMessage instance.

public ServiceBusMessage (Azure.Core.Amqp.AmqpAnnotatedMessage message);

Parameters

message
AmqpAnnotatedMessage

The AMQP message.

Applies to

ServiceBusMessage(ServiceBusReceivedMessage)

Source:
ServiceBusMessage.cs
Source:
ServiceBusMessage.cs

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

public ServiceBusMessage (Azure.Messaging.ServiceBus.ServiceBusReceivedMessage receivedMessage);

Parameters

receivedMessage
ServiceBusReceivedMessage

The received message to copy the data from.

Applies to

ServiceBusMessage(BinaryData)

Source:
ServiceBusMessage.cs
Source:
ServiceBusMessage.cs

Creates a new message from the specified BinaryData instance.

public ServiceBusMessage (BinaryData body);

Parameters

body
BinaryData

The payload of the message.

Applies to

ServiceBusMessage(ReadOnlyMemory<Byte>)

Source:
ServiceBusMessage.cs
Source:
ServiceBusMessage.cs

Creates a new message from the specified payload.

public ServiceBusMessage (ReadOnlyMemory<byte> body);

Parameters

body
ReadOnlyMemory<Byte>

The payload of the message in bytes.

Applies to

ServiceBusMessage(String)

Source:
ServiceBusMessage.cs
Source:
ServiceBusMessage.cs

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

public ServiceBusMessage (string body);

Parameters

body
String

The payload of the message as a string.

Applies to