Windows apps
Collapse the table of content
Expand the table of content
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.

XDocument::Save Method

 

Serializes this XDocument to a file, a TextWriter, or an XmlWriter.

Namespace:   System.Xml.Linq
Assembly:  System.Xml.Linq (in System.Xml.Linq.dll)

NameDescription
System_CAPS_pubmethodSave(Stream^)

Outputs this XDocument to the specified Stream.

System_CAPS_pubmethodSave(Stream^, SaveOptions)

Outputs this XDocument to the specified Stream, optionally specifying formatting behavior.

System_CAPS_pubmethodSave(String^)

Serialize this XDocument to a file, overwriting an existing file, if it exists.

System_CAPS_pubmethodSave(String^, SaveOptions)

Serialize this XDocument to a file, optionally disabling formatting.

System_CAPS_pubmethodSave(TextWriter^)

Serialize this XDocument to a TextWriter.

System_CAPS_pubmethodSave(TextWriter^, SaveOptions)

Serialize this XDocument to a TextWriter, optionally disabling formatting.

System_CAPS_pubmethodSave(XmlWriter^)

Serialize this XDocument to an XmlWriter.

Return to top
Show:
© 2017 Microsoft