BsonMediaTypeFormatter.ReadFromStream Method (Type, Stream, Encoding, IFormatterLogger)
Called during deserialization to read an object of the specified type from the specified stream.
Namespace: System.Net.Http.Formatting
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Syntax
public override object ReadFromStream(
Type type,
Stream readStream,
Encoding effectiveEncoding,
IFormatterLogger formatterLogger
)
public:
virtual Object^ ReadFromStream(
Type^ type,
Stream^ readStream,
Encoding^ effectiveEncoding,
IFormatterLogger^ formatterLogger
) override
override ReadFromStream :
type:Type *
readStream:Stream *
effectiveEncoding:Encoding *
formatterLogger:IFormatterLogger -> Object
Public Overrides Function ReadFromStream (
type As Type,
readStream As Stream,
effectiveEncoding As Encoding,
formatterLogger As IFormatterLogger
) As Object
Parameters
type
Type: System.TypeThe type of the object to read.
readStream
Type: System.IO.StreamThe stream from which to read.
effectiveEncoding
Type: System.Text.EncodingThe encoding to use when reading.
formatterLogger
Type: System.Net.Http.Formatting.IFormatterLoggerThe logger to log events to.
Return Value
Type: System.Object
The object that has been read.
See Also
BsonMediaTypeFormatter Class
System.Net.Http.Formatting Namespace
Return to top