Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

XElement::Load Method

 

Creates a new XElement from a file specified by a URI, from an TextReader, or from an XmlReader.

Namespace:   System.Xml.Linq
Assembly:  System.Xml.Linq (in System.Xml.Linq.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticLoad(Stream^)

Creates a new XElement instance by using the specified stream.

System_CAPS_pubmethodSystem_CAPS_staticLoad(Stream^, LoadOptions)

Creates a new XElement instance by using the specified stream, optionally preserving white space, setting the base URI, and retaining line information.

System_CAPS_pubmethodSystem_CAPS_staticLoad(String^)

Loads an XElement from a file.

System_CAPS_pubmethodSystem_CAPS_staticLoad(String^, LoadOptions)

Loads an XElement from a file, optionally preserving white space, setting the base URI, and retaining line information.

System_CAPS_pubmethodSystem_CAPS_staticLoad(TextReader^)

Loads an XElement from a TextReader.

System_CAPS_pubmethodSystem_CAPS_staticLoad(TextReader^, LoadOptions)

Loads an XElement from a TextReader, optionally preserving white space and retaining line information.

System_CAPS_pubmethodSystem_CAPS_staticLoad(XmlReader^)

Loads an XElement from an XmlReader.

System_CAPS_pubmethodSystem_CAPS_staticLoad(XmlReader^, LoadOptions)

Loads an XElement from an XmlReader, optionally preserving white space, setting the base URI, and retaining line information.

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.

Return to top
Show:
© 2017 Microsoft