Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

[<AbstractClass>]
[<Sealed>]
[<EditorBrowsableAttribute(EditorBrowsableState.Never)>]
type HttpContentExtensions = class end

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
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft