Share via


ServiceBusReceivedMessage.FromAmqpMessage Method

Definition

Constructs a ServiceBusReceivedMessage from its serialized AMQP form.

public static Azure.Messaging.ServiceBus.ServiceBusReceivedMessage FromAmqpMessage (Azure.Core.Amqp.AmqpAnnotatedMessage message, BinaryData lockTokenBytes);
static member FromAmqpMessage : Azure.Core.Amqp.AmqpAnnotatedMessage * BinaryData -> Azure.Messaging.ServiceBus.ServiceBusReceivedMessage
Public Shared Function FromAmqpMessage (message As AmqpAnnotatedMessage, lockTokenBytes As BinaryData) As ServiceBusReceivedMessage

Parameters

message
AmqpAnnotatedMessage

The AMQP message.

lockTokenBytes
BinaryData

The lock token bytes.

Returns

The constructed ServiceBusReceivedMessage.

Applies to