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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.