FileVersionInfo.Comments Eigenschap

Definitie

Hiermee haalt u de opmerkingen op die aan het bestand zijn gekoppeld.

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

Waarde van eigenschap

De opmerkingen die zijn gekoppeld aan het bestand of null als het bestand geen versie-informatie bevat.

Voorbeelden

In het volgende voorbeeld wordt aanroepen GetVersionInfo om het FileVersionInfo voor Kladblok op te halen. Vervolgens worden de opmerkingen in een tekstvak afgedrukt. Bij deze code wordt ervan uitgegaan dat textBox1 deze is geïnstantieerd.

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

Opmerkingen

Deze eigenschap bevat aanvullende informatie die kan worden weergegeven voor diagnostische doeleinden.

Van toepassing op