MessageDestinationPayloadFeatureExtensions.SetDestinationPayload 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.
Overloads
SetDestinationPayload(MessageContext, Byte[]) |
Sets the message payload in the MessageContext for IMessageDestination. |
SetDestinationPayload(MessageContext, ReadOnlyMemory<Byte>) |
Sets the message payload in the MessageContext for IMessageDestination. |
SetDestinationPayload(MessageContext, Byte[])
Sets the message payload in the MessageContext for IMessageDestination.
public:
[System::Runtime::CompilerServices::Extension]
static void SetDestinationPayload(System::Cloud::Messaging::MessageContext ^ context, cli::array <System::Byte> ^ payload);
public static void SetDestinationPayload(this System.Cloud.Messaging.MessageContext context, byte[] payload);
static member SetDestinationPayload : System.Cloud.Messaging.MessageContext * byte[] -> unit
<Extension()>
Public Sub SetDestinationPayload (context As MessageContext, payload As Byte())
Parameters
- context
- MessageContext
Exceptions
If any of the parameters is null.
Applies to
SetDestinationPayload(MessageContext, ReadOnlyMemory<Byte>)
Sets the message payload in the MessageContext for IMessageDestination.
public:
[System::Runtime::CompilerServices::Extension]
static void SetDestinationPayload(System::Cloud::Messaging::MessageContext ^ context, ReadOnlyMemory<System::Byte> payload);
public static void SetDestinationPayload(this System.Cloud.Messaging.MessageContext context, ReadOnlyMemory<byte> payload);
static member SetDestinationPayload : System.Cloud.Messaging.MessageContext * ReadOnlyMemory<byte> -> unit
<Extension()>
Public Sub SetDestinationPayload (context As MessageContext, payload As ReadOnlyMemory(Of Byte))
Parameters
- context
- MessageContext
- payload
- ReadOnlyMemory<Byte>
Message payload in ReadOnlyMemory<T> of Byte.
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.