FileVersionInfo.Comments Свойство

Определение

Возвращает примечания, связанные с файлом.

public:
 property System::String ^ Comments { System::String ^ get(); };
public string? Comments { get; }
public string Comments { get; }
member this.Comments : string
Public ReadOnly Property Comments As String

Значение свойства

Примечания, связанные с файлом или null если файл не содержал сведения о версии.

Примеры

В следующем примере вызовы GetVersionInfo для получения FileVersionInfo блокнота. Затем он печатает комментарии в текстовом поле. Предполагается, что textBox1 этот код создан.

void GetComments()
{
    // Get the file version for the notepad.
    FileVersionInfo myFileVersionInfo =
        FileVersionInfo.GetVersionInfo(Environment.SystemDirectory + "\\Notepad.exe");
    // Print the comments in a text box.
    textBox1.Text = "Comments: " + myFileVersionInfo.Comments;
}
Sub GetComments()
    ' Get the file version for the notepad.
    Dim myFileVersionInfo As FileVersionInfo = _
       FileVersionInfo.GetVersionInfo(Environment.SystemDirectory + "\Notepad.exe")

    ' Print the comments in a text box.
    textBox1.Text = "Comments: " & myFileVersionInfo.Comments
End Sub

Комментарии

Это свойство содержит дополнительные сведения, которые можно отобразить в целях диагностики.

Применяется к