Export (0) Print
Expand All

XmlMediaTypeFormatter.ReadFromStreamAsync Method

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

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

public override Task<Object> ReadFromStreamAsync(
	Type type,
	Stream readStream,
	HttpContent content,
	IFormatterLogger formatterLogger
)

Parameters

type
Type: System.Type

The type of object to read.

readStream
Type: System.IO.Stream

The Stream from which to read.

content
Type: HttpContent

The HttpContent for the content being read.

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

The IFormatterLogger 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.
Show:
© 2015 Microsoft