ResXDataNode.Comment Proprietà
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Ottiene o imposta un commento arbitrario relativo alla risorsa.
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
Valore della proprietà
Stringa che rappresenta il commento.
Esempio
Vedere l'esempio per la ResXDataNode classe .
Commenti
Se un commento non è stato assegnato all'elemento della risorsa, il valore della Comment proprietà è String.Empty.
È possibile accedere alla Comment proprietà di un nodo dati in un file di risorse XML esistente creando un'istanza di un ResXResourceReader oggetto , impostando la ResXResourceReader.UseResXDataNodes proprietà su truee chiamando il ResXResourceReader.GetEnumerator metodo per recuperare un IDictionaryEnumerator oggetto utilizzato per enumerare gli elementi nel file di risorse XML. La IDictionaryEnumerator.Value proprietà restituisce l'oggetto ResXDataNode .