XDocument Constructor (XDocument)
Collapse the table of content
Expand the table of content

XDocument Constructor (XDocument)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Initializes a new instance of the XDocument class from an existing XDocument object.

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

public XDocument(
	XDocument other
)

Parameters

other
Type: System.Xml.Linq.XDocument
The XDocument object that will be copied.

You use this constructor to make a deep copy of an XDocument.

This constructor traverses all nodes and attributes in the document specified in the other parameter, and creates copies of all nodes as it assembles the newly initialized XDocument.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft