FileVersionInfo.Comments プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > FileVersionInfo.Comments プロパティの意味・解説 

FileVersionInfo.Comments プロパティ

ファイルに関連付けられているコメントを取得します。

名前空間: System.Diagnostics
アセンブリ: System (system.dll 内)
構文構文

解説解説
使用例使用例

GetVersionInfo を呼び出して、メモ帳の FileVersionInfo を取得する例を次に示します。次に、コメントをテキスト ボックスに出力します。このコードは、textBox1 がインスタンス化されていることを前提にしています。

Sub GetComments()
    ' Get the file version for the notepad.
    Dim myFileVersionInfo As FileVersionInfo
 = _
        FileVersionInfo.GetVersionInfo("%systemroot%\Notepad.exe")
    
    ' Print the comments in a text box.
    textBox1.Text = "Comments: " & myFileVersionInfo.Comments
End Sub 'GetComments
void GetComments() {
    // Get the file version for the notepad.
    FileVersionInfo myFileVersionInfo = FileVersionInfo.GetVersionInfo("%systemroot%\\Notepad.exe");
 
    // Print the comments in a text box.
    textBox1.Text = "Comments: " + myFileVersionInfo.Comments;
 }
    
public:
   [PermissionSet(SecurityAction::Demand, Name="FullTrust")]
   void GetComments()
   {
      // Get the file version for the notepad.
      FileVersionInfo^ myFileVersionInfo = FileVersionInfo::GetVersionInfo( "%systemroot%\\Notepad.exe"
 );
      
      // Print the comments in a text box.
      textBox1->Text = String::Concat( "Comments: ", myFileVersionInfo->Comments
 );
   }
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

FileVersionInfo.Comments プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



FileVersionInfo.Comments プロパティのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS