Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

BaseJsonMediaTypeFormatter::ReadFromStreamAsync Method

 

Namespace:   System.Net.Http.Formatting
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)

NameDescription
System_CAPS_pubmethodReadFromStreamAsync(Type^, Stream^, HttpContent^, IFormatterLogger^)

Called during deserialization to read an object of the specified type from the specified stream.(Overrides MediaTypeFormatter::ReadFromStreamAsync(Type^, Stream^, HttpContent^, IFormatterLogger^).)

System_CAPS_pubmethodReadFromStreamAsync(Type^, Stream^, HttpContent^, IFormatterLogger^, CancellationToken)

Asynchronously deserializes an object of the specified type.(Inherited from MediaTypeFormatter.)

Return to top

BaseJsonMediaTypeFormatter::ReadFromStreamAsync Method (Type^, Stream^, HttpContent^, IFormatterLogger^)

Called during deserialization to read an object of the specified type from the specified stream.

public:
virtual Task<Object^>^ ReadFromStreamAsync(
	Type^ type,
	Stream^ readStream,
	HttpContent^ content,
	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.

content
Type: System.Net.Http::HttpContent^

The HttpContent for the content being read.

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

The logger to log events to.

Return Value

Type: System.Threading.Tasks::Task<Object^>^

A task whose result will be the object instance that has been read.

Return to top
Show: