Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Reads an object of the specified type from the specified stream. This method is called during deserialization.
Namespace: System.Net.Http.Formatting
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Syntax
'Declaration
Public Overrides Function ReadFromStreamAsync ( _
type As Type, _
readStream As Stream, _
content As HttpContent, _
formatterLogger As IFormatterLogger _
) As Task(Of Object)
'Usage
Dim instance As JsonMediaTypeFormatter
Dim type As Type
Dim readStream As Stream
Dim content As HttpContent
Dim formatterLogger As IFormatterLogger
Dim returnValue As Task(Of Object)
returnValue = instance.ReadFromStreamAsync(type, _
readStream, content, formatterLogger)
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
abstract ReadFromStreamAsync :
type:Type *
readStream:Stream *
content:HttpContent *
formatterLogger:IFormatterLogger -> Task<Object>
override ReadFromStreamAsync :
type:Type *
readStream:Stream *
content:HttpContent *
formatterLogger:IFormatterLogger -> Task<Object>
public override function ReadFromStreamAsync(
type : Type,
readStream : Stream,
content : HttpContent,
formatterLogger : IFormatterLogger
) : Task<Object>
Parameters
type
Type: System.TypeThe type of object to read.
readStream
Type: System.IO.StreamThestream from which to read
content
Type: HttpContentThe content being written.
formatterLogger
Type: System.Net.Http.Formatting.IFormatterLoggerThe IFormatterLogger to log events to.
Return Value
Type: System.Threading.Tasks.Task<Object>
Returns Task<TResult>.
Remarks
A Task whose result will be the object instance that has been read.