XDeclaration Constructor (XDeclaration)

 

Initializes a new instance of the XDeclaration class from another XDeclaration object.

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

public XDeclaration(
	XDeclaration other
)

Parameters

other
Type: System.Xml.Linq.XDeclaration

The XDeclaration used to initialize this XDeclaration object.

This constructor is primarily used internally to make a deep copy of an XML tree.

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.5
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: