XElement.Load 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
Creates a new XElement from a file specified by a URI, from an TextReader, or from an XmlReader.
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 | |
---|---|---|
Load(Stream) | Creates a new XElement instance using the specified stream. | |
Load(String) | Loads an XElement from a file located in the applications' XAP package. | |
Load(TextReader) | Loads an XElement from a TextReader. | |
Load(XmlReader) | Loads an XElement from an XmlReader. | |
Load(Stream, LoadOptions) | Creates a new XElement instance using the specified stream, optionally preserving white space, setting the base URI, and retaining line information. | |
Load(String, LoadOptions) | Loads an XElement from a file located in the application's XAP package, optionally preserving white space, setting the base URI, and retaining line information. | |
Load(TextReader, LoadOptions) | Loads an XElement from a TextReader, optionally preserving white space and retaining line information. | |
Load(XmlReader, LoadOptions) | Loads an XElement from an XmlReader, optionally preserving white space, setting the base URI, and retaining line information. |
Top
Remarks
You can use one of the overloads of this method to load an XElement from a file, a TextReader, or an XmlReader.
To create an XElement from a string that contains XML, use Parse.
See Also