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.
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 virtual object ReadFromStream(
Type type,
Stream readStream,
Encoding effectiveEncoding,
IFormatterLogger formatterLogger
)
public:
virtual Object^ ReadFromStream(
Type^ type,
Stream^ readStream,
Encoding^ effectiveEncoding,
IFormatterLogger^ formatterLogger
)
abstract ReadFromStream :
type:Type *
readStream:Stream *
effectiveEncoding:Encoding *
formatterLogger:IFormatterLogger -> Object
override ReadFromStream :
type:Type *
readStream:Stream *
effectiveEncoding:Encoding *
formatterLogger:IFormatterLogger -> Object
Public Overridable 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
BaseJsonMediaTypeFormatter Class
System.Net.Http.Formatting Namespace
Return to top