FileVersionInfo.FileDescription Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient la description du fichier.
public:
property System::String ^ FileDescription { System::String ^ get(); };
public string FileDescription { get; }
member this.FileDescription : string
Public ReadOnly Property FileDescription As String
Valeur de propriété
Description du fichier ou null si le fichier ne contenait pas d’informations de version.
Exemples
L’exemple d’appel GetVersionInfo suivant permet d’obtenir le FileVersionInfo Bloc-notes. Ensuite, il imprime le FileDescription contenu dans une zone de texte. Ce code suppose qu’il textBox1 a été instancié.
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