ResXDataNode.Comment Property


Gets or sets an arbitrary comment regarding this resource.

 property System::String ^ Comment { System::String ^ get(); void set(System::String ^ value); };
public string Comment { get; set; }
member this.Comment : string with get, set
Public Property Comment As String

Property Value


A string that represents the comment.


See the example for the ResXDataNode class.


If a comment has not been assigned to the resource item, the value of the Comment property is String.Empty.

You access the Comment property of an data node in an existing XML resource file by instantiating a ResXResourceReader object, setting the ResXResourceReader.UseResXDataNodes property to true, and calling the ResXResourceReader.GetEnumerator method to retrieve an IDictionaryEnumerator object that you use to enumerate the items in the XML resource file. The IDictionaryEnumerator.Value property returns the ResXDataNode object.

Applies to