Share via


AmqpMessageBody.TryGetData Method

Definition

Try to get the data sections for the AMQP message body.

public bool TryGetData (out System.Collections.Generic.IEnumerable<ReadOnlyMemory<byte>>? data);
member this.TryGetData : seq -> bool
Public Function TryGetData (ByRef data As IEnumerable(Of ReadOnlyMemory(Of Byte))) As Boolean

Parameters

data
IEnumerable<ReadOnlyMemory<Byte>>

If the AmqpMessageBody instance is Data, this will be populated with the data sections for the message.

Returns

True if the AmqpMessageBody instance is Data.

Applies to