Jaa


ReceiveRequestExtensions.ReadBodyAsStringAsync(ReceiveRequest) Method

Definition

Reads the body of this ReceiveRequest as a string.

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

Parameters

request
ReceiveRequest

The current instance of ReceiveRequest.

Returns

On success, a string populated with data read from the ReceiveRequest body. Otherwise null.

Applies to