XDocument.Save Method
.NET Framework (current version)
![]() |
---|
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.
Assembly: System.Xml.Linq (in System.Xml.Linq.dll)
Name | Description | |
---|---|---|
![]() | Save(Stream) | |
![]() | Save(Stream, SaveOptions) | |
![]() | Save(String) | Serialize this XDocument to a file, overwriting an existing file, if it exists. |
![]() | Save(String, SaveOptions) | Serialize this XDocument to a file, optionally disabling formatting. |
![]() | Save(TextWriter) | Serialize this XDocument to a TextWriter. |
![]() | Save(TextWriter, SaveOptions) | Serialize this XDocument to a TextWriter, optionally disabling formatting. |
![]() | Save(XmlWriter) |
Show: