ReceiveResponseExtensions.ReadBodyAsStringAsync(ReceiveResponse) Method

Definition

Serializes the body of this ReceiveResponse as a String.

public static System.Threading.Tasks.Task<string> ReadBodyAsStringAsync (this Microsoft.Bot.Streaming.ReceiveResponse response);
static member ReadBodyAsStringAsync : Microsoft.Bot.Streaming.ReceiveResponse -> System.Threading.Tasks.Task<string>
<Extension()>
Public Function ReadBodyAsStringAsync (response As ReceiveResponse) As Task(Of String)

Parameters

response
ReceiveResponse

The current instance of ReceiveResponse.

Returns

Task<String>

On success, an String of the data from the ReceiveResponse body.

Applies to