Jaa


ReceiveResponseExtensions.ReadBodyAsJson<T>(ReceiveResponse) Method

Definition

Serializes the body of this ReceiveResponse as JSON.

public static T ReadBodyAsJson<T> (this Microsoft.Bot.Streaming.ReceiveResponse response);
static member ReadBodyAsJson : Microsoft.Bot.Streaming.ReceiveResponse -> 'T
<Extension()>
Public Function ReadBodyAsJson(Of T) (response As ReceiveResponse) As T

Type Parameters

T

The type to attempt to deserialize the contents of this ReceiveResponse's body into.

Parameters

response
ReceiveResponse

The current instance of ReceiveResponse.

Returns

T

On success, an object of type T populated with data serialized from the ReceiveResponse body. Otherwise a default instance of type T.

Applies to