NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

FileVersionInfo.FileDescription

Gets the description of the file.

[Visual Basic]
Public ReadOnly Property FileDescription As String
[C#]
public string FileDescription {get;}
[C++]
public: __property String* get_FileDescription();
[JScript]
public function get FileDescription() : String;

Property Value

The description of the file.

Example [Visual Basic]

The following example calls GetVersionInfo to get a FileVersionInfo for the Notepad. Then it prints the FileDescription in a text box. This code assumes TextBox1 has been instantiated.

[Visual Basic]

Private Sub GetFileDescription()
   Dim myFileVersionInfo As System.Winforms.FileVersionInfo
   myFileVersionInfo = System.Winforms.FileVersionInfo.GetVersionInfo("c:\WINNT\Notepad.exe")

   'Print the file name and version number.
   TextBox1.Text = "File Description: " & myFileVersionInfo.FileDescription
End Sub

See Also

FileVersionInfo Class | FileVersionInfo Members | System.WinForms Namespace