FileVersionInfo.FileDescription Propriedade
Definição
Obtém a descrição do arquivo.Gets the description of the file.
public:
property System::String ^ FileDescription { System::String ^ get(); };
public string? FileDescription { get; }
public string FileDescription { get; }
member this.FileDescription : string
Public ReadOnly Property FileDescription As String
Valor da propriedade
A descrição do arquivo ou null se o arquivo não continha informações de versão.The description of the file or null if the file did not contain version information.
Exemplos
O exemplo a seguir chama GetVersionInfo para obter o FileVersionInfo bloco de notas.The following example calls GetVersionInfo to get the FileVersionInfo for the Notepad. Em seguida, ele imprime o FileDescription em uma caixa de texto.Then it prints the FileDescription in a text box. Esse código pressupõe que textBox1 tenha sido instanciado.This code assumes textBox1 has been instantiated.
private:
void GetFileDescription()
{
// Get the file version for the notepad.
FileVersionInfo^ myFileVersionInfo =
FileVersionInfo::GetVersionInfo( Environment::SystemDirectory + "\\Notepad.exe" );
// Print the file description.
textBox1->Text = String::Concat( "File description: ", myFileVersionInfo->FileDescription );
}
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