ResXDataNode.Comment 屬性

定義

取得或設定有關這個資源的任意註解。

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

屬性值

表示註解的字串。

範例

請參閱 類別的 ResXDataNode 範例。

備註

如果尚未將批註指派給資源專案,則 屬性的值 CommentString.Empty

您可以藉由具現化 ResXResourceReader 物件、將 ResXResourceReader.UseResXDataNodes 屬性設定為 true ,以及呼叫 ResXResourceReader.GetEnumerator 方法來擷取 IDictionaryEnumerator 您用來列舉 XML 資源檔中專案的物件,以存取 Comment 現有 XML 資源檔中的資料節點屬性。 屬性會 IDictionaryEnumerator.ValueResXDataNode 回 物件。

適用於