Export (0) Print
Expand All

HttpContentExtensions Class

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

System.Object
  System.Net.Http.HttpContentExtensions

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

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

  NameDescription
Public methodStatic memberReadAsAsync(HttpContent, Type) Returns a Task that will yield an object of the specified type from the content instance.
Public methodStatic memberReadAsAsync(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 memberReadAsAsync(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.
Public methodStatic memberReadAsAsync(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.
Public methodStatic memberReadAsAsync(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.
Public methodStatic memberReadAsAsync(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.
Public methodStatic memberReadAsAsync<T>(HttpContent) Returns a Task that will yield an object of the specified type <typeparamref name="T" /> from the content instance.
Public methodStatic memberReadAsAsync<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 memberReadAsAsync<T>(HttpContent, CancellationToken)Returns a Task that will yield an object of the specified type from the content instance.
Public methodStatic memberReadAsAsync<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 memberReadAsAsync<T>(HttpContent, IEnumerable<MediaTypeFormatter>, CancellationToken)Returns a Task that will yield an object of the specified type from the content instance.
Public methodStatic memberReadAsAsync<T>(HttpContent, IEnumerable<MediaTypeFormatter>, IFormatterLogger, CancellationToken)Returns a Task that will yield an object of the specified type from the content instance.
Top

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