Uredi

Deli z drugimi prek


ResXDataNode.Comment Property

Definition

Gets or sets an arbitrary comment regarding this resource.

public:
 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.

Examples

See the example for the ResXDataNode class.

Remarks

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