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.Comments

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;

Property Value

The comments associated with the file.

Remarks

This property contains additional information that can be displayed for diagnostic purposes.

Example [Visual Basic]

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

See Also

FileVersionInfo Class | FileVersionInfo Members | System.WinForms Namespace