MessageDestinationPayloadFeatureExtensions.TryGetDestinationPayload 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 for IMessageDestination as ReadOnlyMemory<T> of Byte.
public:
[System::Runtime::CompilerServices::Extension]
static bool TryGetDestinationPayload(System::Cloud::Messaging::MessageContext ^ context, [Runtime::InteropServices::Out] Nullable<ReadOnlyMemory<System::Byte>> % payload);
public static bool TryGetDestinationPayload(this System.Cloud.Messaging.MessageContext context, out ReadOnlyMemory<byte>? payload);
static member TryGetDestinationPayload : System.Cloud.Messaging.MessageContext * Nullable -> bool
<Extension()>
Public Function TryGetDestinationPayload (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>.
Applies to
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.