JsonMediaTypeFormatter::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)

public:
virtual Object^ ReadFromStream(
	Type^ type,
	Stream^ readStream,
	Encoding^ effectiveEncoding,
	IFormatterLogger^ formatterLogger
) override

Parameters

type
Type: System::Type^

The type of the object to read.

readStream
Type: System.IO::Stream^

The stream from which to read.

effectiveEncoding
Type: System.Text::Encoding^

The encoding to use when reading.

formatterLogger
Type: System.Net.Http.Formatting::IFormatterLogger^

The logger to log events to.

Return Value

Type: System::Object^

The object that has been read.

Return to top
Show: