Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Save Method

XDocument.Save Method

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

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Supported by Portable Class Library Save(Stream) Outputs this XDocument to the specified Stream.
Public method Supported by the XNA Framework Save(String) Serialize this XDocument to a file, overwriting an existing file, if it exists.
Public method Supported by the XNA Framework Supported by Portable Class Library Save(TextWriter) Serialize this XDocument to a TextWriter.
Public method Supported by the XNA Framework Supported by Portable Class Library Save(XmlWriter) Serialize this XDocument to an XmlWriter.
Public method Supported by Portable Class Library Save(Stream, SaveOptions) Outputs this XDocument to the specified Stream, optionally specifying formatting behavior.
Public method Supported by the XNA Framework Save(String, SaveOptions) Serialize this XDocument to a file, optionally disabling formatting.
Public method Supported by the XNA Framework Supported by Portable Class Library Save(TextWriter, SaveOptions) Serialize this XDocument to a TextWriter, optionally disabling formatting.
Top
Show:
© 2015 Microsoft