XElement.Save Method

Serialize this element's underlying XML tree. The output can be saved to a file, an XmlTextWriter, a TextWriter, or an XmlWriter. Optionally, formatting (indenting) can be disabled.

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 XElement to the specified Stream.
Public method Supported by the XNA Framework Save(String) Serialize this element to a file.
Public method Supported by the XNA Framework Supported by Portable Class Library Save(TextWriter) Serialize this element to a TextWriter.
Public method Supported by the XNA Framework Supported by Portable Class Library Save(XmlWriter) Serialize this element to an XmlWriter.
Public method Supported by Portable Class Library Save(Stream, SaveOptions) Outputs this XElement to the specified Stream, optionally specifying formatting behavior.
Public method Supported by the XNA Framework Save(String, SaveOptions) Serialize this element to a file, optionally disabling formatting.
Public method Supported by the XNA Framework Supported by Portable Class Library Save(TextWriter, SaveOptions) Serialize this element to a TextWriter, optionally disabling formatting.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft