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
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET