XComment.Value Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets or sets the string value of this comment.
Assembly: System.Xml.Linq (in System.Xml.Linq.dll)
| Exception | Condition |
|---|---|
| ArgumentNullException | The value is null. |
Unlike XElement and XAttribute, you cannot retrieve the contents of a comment by casting it to a string. Instead, you must use this property to retrieve the contents.
Setting this property will raise the Changed and the Changing events.
Show: