Bewerken

Delen via


MessageSourcePayloadFeatureExtensions.TryGetSourcePayload Method

Definition

Try to get the message payload obtained from IMessageSource.

public:
[System::Runtime::CompilerServices::Extension]
 static bool TryGetSourcePayload(System::Cloud::Messaging::MessageContext ^ context, [Runtime::InteropServices::Out] Nullable<ReadOnlyMemory<System::Byte>> % payload);
public static bool TryGetSourcePayload(this System.Cloud.Messaging.MessageContext context, out ReadOnlyMemory<byte>? payload);
static member TryGetSourcePayload : System.Cloud.Messaging.MessageContext * Nullable -> bool
<Extension()>
Public Function TryGetSourcePayload (context As MessageContext, ByRef payload As Nullable(Of ReadOnlyMemory(Of Byte))) As Boolean

Parameters

payload
Nullable<ReadOnlyMemory<Byte>>

The out to store the ReadOnlyMemory<T> representing the message payload.

Returns

Boolean and if true, a corresponding ReadOnlyMemory<T>.

Applies to