JQueryMvcFormUrlEncodedFormatter.ReadFromStreamAsync Method
Namespace: System.Web.Http.ModelBinding
Assembly: System.Web.Http (in System.Web.Http.dll)
Overload List
Name | Description | |
---|---|---|
ReadFromStreamAsync(Type, Stream, HttpContent, IFormatterLogger) | Reads an object of the specified type from the specified stream. This method is called during deserialization.(Overrides FormUrlEncodedMediaTypeFormatter.ReadFromStreamAsync(Type, Stream, HttpContent, IFormatterLogger).) |
|
ReadFromStreamAsync(Type, Stream, HttpContent, IFormatterLogger, CancellationToken) | Asynchronously deserializes an object of the specified type.(Inherited from MediaTypeFormatter.) |
See Also
JQueryMvcFormUrlEncodedFormatter Class
System.Web.Http.ModelBinding Namespace
Return to top
JQueryMvcFormUrlEncodedFormatter.ReadFromStreamAsync Method (Type, Stream, HttpContent, IFormatterLogger)
Reads an object of the specified type from the specified stream. This method is called during deserialization.
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.TypeThe type of object to read.
readStream
Type: System.IO.StreamThe Stream from which to read.
content
Type: System.Net.Http.HttpContentThe content being read.
formatterLogger
Type: System.Net.Http.Formatting.IFormatterLoggerThe IFormatterLogger to log events to.
Return Value
Type: System.Threading.Tasks.Task<Object>
A Task whose result will be the object instance that has been read.
Return to top