XmlMediaTypeFormatter.CreateXmlWriter Method (Stream, HttpContent)
Called during serialization to get the XML writer to use for writing objects to the stream.
Namespace: System.Net.Http.Formatting
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Syntax
protected internal virtual XmlWriter CreateXmlWriter(
Stream writeStream,
HttpContent content
)
public protected:
virtual XmlWriter^ CreateXmlWriter(
Stream^ writeStream,
HttpContent^ content
)
abstract CreateXmlWriter :
writeStream:Stream *
content:HttpContent -> XmlWriter
override CreateXmlWriter :
writeStream:Stream *
content:HttpContent -> XmlWriter
Protected Friend Overridable Function CreateXmlWriter (
writeStream As Stream,
content As HttpContent
) As XmlWriter
Parameters
writeStream
Type: System.IO.StreamThe Stream to write to.
content
Type: System.Net.Http.HttpContentThe HttpContent for the content being written.
Return Value
Type: System.Xml.XmlWriter
The XmlWriter to use for writing objects.
See Also
XmlMediaTypeFormatter Class
System.Net.Http.Formatting Namespace
Return to top