Reads synchronously from the buffered stream.
Namespace:  System.Net.Http.Formatting
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Syntax
'Declaration
Public Overridable Function ReadFromStream ( _
    type As Type, _
    readStream As Stream, _
    content As HttpContent, _
    formatterLogger As IFormatterLogger _
) As Object
'Usage
Dim instance As BufferedMediaTypeFormatter 
Dim type As Type 
Dim readStream As Stream 
Dim content As HttpContent 
Dim formatterLogger As IFormatterLogger 
Dim returnValue As Object 
returnValue = instance.ReadFromStream(type, _
    readStream, content, formatterLogger)
public virtual Object ReadFromStream(
    Type type,
    Stream readStream,
    HttpContent content,
    IFormatterLogger formatterLogger
)
public:
virtual Object^ ReadFromStream(
    Type^ type, 
    Stream^ readStream, 
    HttpContent^ content, 
    IFormatterLogger^ formatterLogger
)
abstract ReadFromStream : 
        type:Type * 
        readStream:Stream * 
        content:HttpContent * 
        formatterLogger:IFormatterLogger -> Object  
override ReadFromStream : 
        type:Type * 
        readStream:Stream * 
        content:HttpContent * 
        formatterLogger:IFormatterLogger -> Object
public function ReadFromStream(
    type : Type, 
    readStream : Stream, 
    content : HttpContent, 
    formatterLogger : IFormatterLogger
) : Object
Parameters
- type 
 Type: System.Type- The type of the object to deserialize. 
- readStream 
 Type: System.IO.Stream- The stream from which to read 
- content 
 Type: HttpContent- The HttpContent, if available. Can be null. 
- formatterLogger 
 Type: System.Net.Http.Formatting.IFormatterLogger- The IFormatterLogger to log events to. 
Return Value
Type: System.Object
An object of the given type.
Remarks
An implementation of this method should close stream upon completion.