Gets the comments associated with the file.
[Visual Basic] Public ReadOnly Property Comments As String [C#] public string Comments {get;} [C++] public: __property String* get_Comments(); [JScript] public function get Comments() : String;
The comments associated with the file.
This property contains additional information that can be displayed for diagnostic purposes.
The following example calls GetVersionInfo to get a FileVersionInfo for the Notepad. Then it prints the comments in a text box. This code assumes TextBox1 has been instantiated.
[Visual Basic]
Private Sub GetComments() Dim myFileVersionInfo As System.Winforms.FileVersionInfo myFileVersionInfo = System.Winforms.FileVersionInfo.GetVersionInfo("c:\WINNT\Notepad.exe") 'Print the comments in a text box. TextBox1.Text = "Comments: " & myFileVersionInfo.Comments End Sub
FileVersionInfo Class | FileVersionInfo Members | System.WinForms Namespace