Bewerken

Delen via


MessageContext.TryGetUTF8DestinationPayloadAsString(String) Method

Definition

Try to get the DestinationPayload message registered with MessageContext as a String in the UTF8 encoding.

public:
 bool TryGetUTF8DestinationPayloadAsString([Runtime::InteropServices::Out] System::String ^ % payload);
public bool TryGetUTF8DestinationPayloadAsString(out string? payload);
member this.TryGetUTF8DestinationPayloadAsString : string -> bool
Public Function TryGetUTF8DestinationPayloadAsString (ByRef payload As String) As Boolean

Parameters

payload
String

The optional payload for the destination message in UTF8 encoding.

Remarks

Implementation copied from public override unsafe string ToString() method of BinaryData. No special treatment is given to the contents of the data, it is merely decoded as a UTF-8 string. For a JPEG or other binary file format the string will largely be nonsense with many embedded NUL characters, and UTF-8 JSON values will look like their file/network representation, including starting and stopping quotes on a string.

Applies to