次の方法で共有


HttpContentExtensions.ReadAsAsync Method

Include Protected Members
Include Inherited Members

Reads information from an HTTP entity body and content headers.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public methodStatic member ReadAsAsync<T>(HttpContent) Returns a Task that will yield an object of the specified type <typeparamref name="T" /> from the content instance.
Public methodStatic member ReadAsAsync<T>(HttpContent, IEnumerable<MediaTypeFormatter>) Returns a Task that will yield an object of the specified type <typeparamref name="T" /> from the content instance.
Public methodStatic member ReadAsAsync(HttpContent, Type) Returns a Task that will yield an object of the specified type from the content instance.
Public methodStatic member ReadAsAsync<T>(HttpContent, IEnumerable<MediaTypeFormatter>, IFormatterLogger) Returns a Task that will yield an object of the specified type <typeparamref name="T" /> from the content instance.
Public methodStatic member ReadAsAsync(HttpContent, Type, IEnumerable<MediaTypeFormatter>) Returns a Task that will yield an object of the specified type from the content instance using one of the provided formatters to deserialize the content.
Public methodStatic member ReadAsAsync(HttpContent, Type, IEnumerable<MediaTypeFormatter>, IFormatterLogger) Returns a Task that will yield an object of the specified type from the content instance using one of the provided formatters to deserialize the content.

Top

See Also

Reference

HttpContentExtensions Class

System.Net.Http Namespace