Table of Contents

Class JQueryMvcFormUrlEncodedFormatter

Namespace
System.Web.Http.ModelBinding
Assembly
System.Web.Http.dll

Represents the System.Net.Http.Formatting.MediaTypeFormatter class for handling HTML form URL-ended data, also known as application/x-www-form-urlencoded.

public class JQueryMvcFormUrlEncodedFormatter : FormUrlEncodedMediaTypeFormatter
Inheritance
JQueryMvcFormUrlEncodedFormatter

Constructors

JQueryMvcFormUrlEncodedFormatter()

Initializes a new instance of the JQueryMvcFormUrlEncodedFormatter class.

public JQueryMvcFormUrlEncodedFormatter()

Methods

CanReadType(Type)

Determines whether this JQueryMvcFormUrlEncodedFormatter can read objects of the specified type.

public override bool CanReadType(Type type)

Parameters

type Type

The type of object that will be read.

Returns

bool

true if objects of this type can be read; otherwise false.

ReadFromStreamAsync(Type, Stream, HttpContent, IFormatterLogger)

Reads an object of the specified type from the specified stream. This method is called during deserialization.

public override Task<object> ReadFromStreamAsync(Type type, Stream readStream, HttpContent content, IFormatterLogger formatterLogger)

Parameters

type Type

The type of object to read.

readStream Stream

The Stream from which to read.

content HttpContent

The content being read.

formatterLogger IFormatterLogger

The System.Net.Http.Formatting.IFormatterLogger to log events to.

Returns

Task<object>

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