FileVersionInfo.FileDescription Eigenschap

Definitie

Hiermee haalt u de beschrijving van het bestand op.

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

Waarde van eigenschap

De beschrijving van het bestand of null als het bestand geen versiegegevens bevat.

Voorbeelden

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

private void GetFileDescription()
{
    // Get the file version for the notepad.
    FileVersionInfo myFileVersionInfo =
        FileVersionInfo.GetVersionInfo(Environment.SystemDirectory + "\\Notepad.exe");

    // Print the file description.
    textBox1.Text = "File description: " + myFileVersionInfo.FileDescription;
}
Private Sub GetFileDescription()
    ' Get the file version for the notepad.
    Dim myFileVersionInfo As FileVersionInfo = _
        FileVersionInfo.GetVersionInfo(Environment.SystemDirectory + "\Notepad.exe")
    
    ' Print the file description.
    textBox1.Text = "File description: " & myFileVersionInfo.FileDescription
End Sub

Van toepassing op