FormUrlEncodedMediaTypeFormatter.ReadFromStreamAsync Method

 

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

Overload List

Name Description
System_CAPS_pubmethod ReadFromStreamAsync(Type, Stream, HttpContent, IFormatterLogger)

Asynchronously deserializes an object of the specified type.(Overrides MediaTypeFormatter.ReadFromStreamAsync(Type, Stream, HttpContent, IFormatterLogger).)

System_CAPS_pubmethod ReadFromStreamAsync(Type, Stream, HttpContent, IFormatterLogger, CancellationToken)

Asynchronously deserializes an object of the specified type.(Inherited from MediaTypeFormatter.)

See Also

FormUrlEncodedMediaTypeFormatter Class
System.Net.Http.Formatting Namespace

Return to top

FormUrlEncodedMediaTypeFormatter.ReadFromStreamAsync Method (Type, Stream, HttpContent, IFormatterLogger)

Asynchronously deserializes an object of the specified type.

Syntax

public override Task<object> ReadFromStreamAsync(
    Type type,
    Stream readStream,
    HttpContent content,
    IFormatterLogger formatterLogger
)
public:
virtual Task<Object^>^ ReadFromStreamAsync(
    Type^ type,
    Stream^ readStream,
    HttpContent^ content,
    IFormatterLogger^ formatterLogger
) override
override ReadFromStreamAsync : 
        type:Type *
        readStream:Stream *
        content:HttpContent *
        formatterLogger:IFormatterLogger -> Task<Object>
Public Overrides Function ReadFromStreamAsync (
    type As Type,
    readStream As Stream,
    content As HttpContent,
    formatterLogger As IFormatterLogger
) As Task(Of Object)

Parameters

  • type
    Type: System.Type

    The type of object to deserialize.

Return Value

Type: System.Threading.Tasks.Task<Object>

A Task whose result will be the object instance that has been read.

Return to top