XElement.Save Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Include Protected Members
Include Inherited Members
Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members
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.
Overload List
Name | Description | |
---|---|---|
Save(Stream) | Outputs this XElement to the specified Stream. | |
Save(TextWriter) | Serialize this element to a TextWriter. | |
Save(XmlWriter) | Serialize this element to an XmlWriter. | |
Save(Stream, SaveOptions) | Outputs this XElement to the specified Stream, optionally specifying formatting behavior. | |
Save(TextWriter, SaveOptions) | Serialize this element to a TextWriter, optionally disabling formatting. |
Top
See Also