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)

Inheritance Hierarchy

System.Object
  System.Net.Http.HttpContentExtensions

Syntax

[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public static class HttpContentExtensions
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Never)]
public ref class HttpContentExtensions abstract sealed 
[<AbstractClass>]
[<Sealed>]
[<EditorBrowsableAttribute(EditorBrowsableState.Never)>]
type HttpContentExtensions = class end
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Never)>
Public NotInheritable Class HttpContentExtensions

Methods

Name Description
System_CAPS_pubmethodSystem_CAPS_static ReadAsAsync(HttpContent, Type)

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

System_CAPS_pubmethodSystem_CAPS_static ReadAsAsync(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_static 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.

System_CAPS_pubmethodSystem_CAPS_static ReadAsAsync(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_static 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.

System_CAPS_pubmethodSystem_CAPS_static ReadAsAsync(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_static ReadAsAsync<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_static ReadAsAsync<T>(HttpContent, CancellationToken)

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

System_CAPS_pubmethodSystem_CAPS_static ReadAsAsync<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_static ReadAsAsync<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_static 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.

System_CAPS_pubmethodSystem_CAPS_static ReadAsAsync<T>(HttpContent, IEnumerable<MediaTypeFormatter>, IFormatterLogger, CancellationToken)

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

Thread Safety

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

See Also

System.Net.Http Namespace

Return to top