FileVersionInfo.FileDescription Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Property Value
The description of the file or null
if the file did not contain version information.
Examples
The following example calls GetVersionInfo to get the FileVersionInfo for the Notepad. Then it prints the FileDescription in a text box. 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
Applies to
Vertu í samstarfi við okkur á GitHub
Heimildina fyrir þetta efni er að finna á GitHub, þar sem þú getur líka búið til og farið yfir vandamál og sameinað beiðnir. Frekari upplýsingar er að finna í framlagshandbók okkar.