XComment Constructor (String)
[ 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 XComment class with the specified string content.
Assembly: System.Xml.Linq (in System.Xml.Linq.dll)
Parameters
- value
- Type: System.String
A string that contains the contents of the new XComment object.
| Exception | Condition |
|---|---|
| ArgumentNullException | The value parameter is Nothing. |
Show: