MessageSourcePayloadFeatureExtensions.TryGetSourcePayload Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- context
- MessageContext
- payload
- Nullable<ReadOnlyMemory<Byte>>
The out
to store the ReadOnlyMemory<T> representing the message payload.
Returns
Boolean and if true
, a corresponding ReadOnlyMemory<T>.