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
TypeThe 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
TypeThe type of object to read.
readStream
StreamThe Stream from which to read.
content
HttpContentThe content being read.
formatterLogger
IFormatterLoggerThe System.Net.Http.Formatting.IFormatterLogger to log events to.