XAttribute Constructor (XAttribute)
Assembly: System.Xml.Linq (in System.Xml.Linq.dll)
This constructor is primarily used internally when making a deep copy of an XML tree.
This example demonstrates that creating a deep copy of an XML tree creates a copy, not a clone, of an attribute in the tree.
This example produces the following output:
Creating a deep copy created a new attribute from the original.
Available since 8
Available since 3.5
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 8.1