XDocument.Save Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: