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
typeTypeThe 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
typeTypeThe type of object to read.
readStreamStreamThe Stream from which to read.
contentHttpContentThe content being read.
formatterLoggerIFormatterLoggerThe System.Net.Http.Formatting.IFormatterLogger to log events to.