Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

HttpContentExtensions Class

 

Specifies extension methods to allow strongly typed objects to be read from HttpContent instances.

Namespace:   System.Net.Http
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)

System.Object
  System.Net.Http.HttpContentExtensions

[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public static class HttpContentExtensions

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticReadAsAsync(HttpContent, Type)

Returns a Task that will yield an object of the specified type from the content instance.

System_CAPS_pubmethodSystem_CAPS_staticReadAsAsync(HttpContent, Type, CancellationToken)

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.

System_CAPS_pubmethodSystem_CAPS_staticReadAsAsync(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.

System_CAPS_pubmethodSystem_CAPS_staticReadAsAsync(HttpContent, Type, IEnumerable<MediaTypeFormatter>, CancellationToken)

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.

System_CAPS_pubmethodSystem_CAPS_staticReadAsAsync(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.

System_CAPS_pubmethodSystem_CAPS_staticReadAsAsync(HttpContent, Type, IEnumerable<MediaTypeFormatter>, IFormatterLogger, CancellationToken)

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.

System_CAPS_pubmethodSystem_CAPS_staticReadAsAsync<T>(HttpContent)

Returns a Task that will yield an object of the specified type <typeparamref name="T" /> from the content instance.

System_CAPS_pubmethodSystem_CAPS_staticReadAsAsync<T>(HttpContent, CancellationToken)

Returns a Task that will yield an object of the specified type from the content instance.

System_CAPS_pubmethodSystem_CAPS_staticReadAsAsync<T>(HttpContent, IEnumerable<MediaTypeFormatter>)

Returns a Task that will yield an object of the specified type <typeparamref name="T" /> from the content instance.

System_CAPS_pubmethodSystem_CAPS_staticReadAsAsync<T>(HttpContent, IEnumerable<MediaTypeFormatter>, CancellationToken)

Returns a Task that will yield an object of the specified type from the content instance.

System_CAPS_pubmethodSystem_CAPS_staticReadAsAsync<T>(HttpContent, IEnumerable<MediaTypeFormatter>, IFormatterLogger)

Returns a Task that will yield an object of the specified type <typeparamref name="T" /> from the content instance.

System_CAPS_pubmethodSystem_CAPS_staticReadAsAsync<T>(HttpContent, IEnumerable<MediaTypeFormatter>, IFormatterLogger, CancellationToken)

Returns a Task that will yield an object of the specified type from the content instance.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2015 Microsoft