次の方法で共有


HttpMessageExtensions.ReadContentAsStringAsync Method

Definition

Reads the JSON content from the http response message.

public static System.Threading.Tasks.Task<string> ReadContentAsStringAsync (this System.Net.Http.HttpResponseMessage message, bool rewindContentStream = false);
static member ReadContentAsStringAsync : System.Net.Http.HttpResponseMessage * bool -> System.Threading.Tasks.Task<string>
<Extension()>
Public Function ReadContentAsStringAsync (message As HttpResponseMessage, Optional rewindContentStream As Boolean = false) As Task(Of String)

Parameters

message
HttpResponseMessage

The response message to be read.

rewindContentStream
Boolean

Rewind content stream if set to true.

Returns

An object of type T instantiated from the response message's body.

Applies to