XComment Constructor (XComment^)

 

Initializes a new instance of the XComment class from an existing comment node.

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

public:
XComment(
	XComment^ other
)

Parameters

other
Type: System.Xml.Linq::XComment^

The XComment node to copy from.

Exception Condition
ArgumentNullException

The other parameter is null.

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: