ODataMediaTypeFormatter.ReadFromStreamAsync Method
Namespace: System.Web.Http.OData.Formatter
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Overload List
Name | Description | |
---|---|---|
ReadFromStreamAsync(Type, Stream, HttpContent, IFormatterLogger) | (Overrides MediaTypeFormatter.ReadFromStreamAsync(Type, Stream, HttpContent, IFormatterLogger).) |
|
ReadFromStreamAsync(Type, Stream, HttpContent, IFormatterLogger, CancellationToken) | Asynchronously deserializes an object of the specified type.(Inherited from MediaTypeFormatter.) |
See Also
ODataMediaTypeFormatter Class
System.Web.Http.OData.Formatter Namespace
Return to top
ODataMediaTypeFormatter.ReadFromStreamAsync Method (Type, Stream, HttpContent, IFormatterLogger)
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
- readStream
Type: System.IO.Stream
- content
Type: System.Net.Http.HttpContent
- formatterLogger
Type: System.Net.Http.Formatting.IFormatterLogger
Return Value
Type: System.Threading.Tasks.Task<Object>
Return to top