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 Comment della risorsa, il valore della proprietà è String.Empty.
Si accede alla Comment proprietà di un nodo dati in un file di risorse XML esistente creando un'istanza di un oggetto, impostando la proprietà su true
e chiamando il ResXResourceReader.UseResXDataNodesResXResourceReader.GetEnumerator metodo per recuperare un ResXResourceReaderIDictionaryEnumerator oggetto usato per enumerare gli elementi nel file di risorse XML. La IDictionaryEnumerator.Value proprietà restituisce l'oggetto ResXDataNode .
Si applica a
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: nel corso del 2024 verranno dismessi i problemi di GitHub come meccanismo di feedback per il contenuto e verranno sostituiti con un nuovo sistema di feedback. Per altre informazioni, vedere:Invia e visualizza il feedback per