FileVersionInfo.Comments Propiedad

Definición

Obtiene los comentarios asociados al archivo.

public:
 property System::String ^ Comments { System::String ^ get(); };
public string Comments { get; }
member this.Comments : string
Public ReadOnly Property Comments As String

Valor de propiedad

Los comentarios asociados al archivo o null si el archivo no contenía información de versión.

Ejemplos

En el ejemplo siguiente se llama GetVersionInfo a para obtener para FileVersionInfo el Bloc de notas. A continuación, imprime los comentarios en un cuadro de texto. Este código supone textBox1 que se ha creado una instancia de .

void GetComments()
{
    // Get the file version for the notepad.
    FileVersionInfo myFileVersionInfo =
        FileVersionInfo.GetVersionInfo(Environment.SystemDirectory + "\\Notepad.exe");
    // Print the comments in a text box.
    textBox1.Text = "Comments: " + myFileVersionInfo.Comments;
}
Sub GetComments()
    ' Get the file version for the notepad.
    Dim myFileVersionInfo As FileVersionInfo = _
       FileVersionInfo.GetVersionInfo(Environment.SystemDirectory + "\Notepad.exe")

    ' Print the comments in a text box.
    textBox1.Text = "Comments: " & myFileVersionInfo.Comments
End Sub

Comentarios

Esta propiedad contiene información adicional que se puede mostrar con fines de diagnóstico.

Se aplica a