SerializedMessagePayloadFeatureExtensions.TryGetSerializedPayload<T> 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 serialized message payload of T
type from the MessageContext.
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static bool TryGetSerializedPayload(System::Cloud::Messaging::MessageContext ^ context, [Runtime::InteropServices::Out] T % payload);
public static bool TryGetSerializedPayload<T>(this System.Cloud.Messaging.MessageContext context, out T? payload);
static member TryGetSerializedPayload : System.Cloud.Messaging.MessageContext * 'T -> bool
<Extension()>
Public Function TryGetSerializedPayload(Of T) (context As MessageContext, ByRef payload As T) As Boolean
Type Parameters
- T
Type of the serialized message.
Parameters
- context
- MessageContext
The message context.
- payload
- T
The optional serialized message payload.
Returns
Boolean and if true
, a corresponding T
representing the serialized message payload.
Exceptions
Any argument is null
.
Applies to
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.