XmlMediaTypeFormatter.CreateXmlReader Method (Stream, HttpContent)
Called during deserialization to get the XML reader to use for reading objects from the stream.
Namespace: System.Net.Http.Formatting
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Syntax
protected internal virtual XmlReader CreateXmlReader(
Stream readStream,
HttpContent content
)
public protected:
virtual XmlReader^ CreateXmlReader(
Stream^ readStream,
HttpContent^ content
)
abstract CreateXmlReader :
readStream:Stream *
content:HttpContent -> XmlReader
override CreateXmlReader :
readStream:Stream *
content:HttpContent -> XmlReader
Protected Friend Overridable Function CreateXmlReader (
readStream As Stream,
content As HttpContent
) As XmlReader
Parameters
readStream
Type: System.IO.StreamThe Stream to read from.
content
Type: System.Net.Http.HttpContentThe HttpContent for the content being read.
Return Value
Type: System.Xml.XmlReader
The XmlReader to use for reading objects.
See Also
XmlMediaTypeFormatter Class
System.Net.Http.Formatting Namespace
Return to top