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

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

Control.ProductVersion プロパティ

コントロール格納しているアセンブリバージョン取得します

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

解説解説

ProductVersion プロパティ読み取り専用です。このプロパティの値を変更するには、AssemblyVersionAttribute の Version プロパティ値を設定しますProductVersion プロパティ設定する C# コード例次に示します

 [assembly: AssemblyVersion("1.0.1")]
メモメモ

会社名製品名、および製品バージョン指定することを強くお勧めます。この情報指定すると、"Certified for Windows" プログラム準拠しているアプリケーション簡単に作成する Application.UserAppDataPath などの Windows フォーム機能使用できるようになりますCertified for Windows プログラムの詳細については、http://www.microsoft.com/japan/msdn/certification/default.asp を参照してください

使用例使用例

Form配置されLabelアプリケーション情報表示するコード例次に示します。この例では、CompanyName、ProductName、および ProductVersion設定されている必要があります

Private Sub AboutDialog_Load(sender As
 Object, e As EventArgs) Handles
 MyBase.Load
   ' Display the application information in the label.
   Me.labelVersionInfo.Text = _
      Me.CompanyName + "  " + _
      Me.ProductName + "  Version: "
 + _
      Me.ProductVersion
   End Sub
private void AboutDialog_Load(object sender,
 EventArgs e)
{
   // Display the application information in the label.
   this.labelVersionInfo.Text = 
      this.CompanyName + "  " + 
      this.ProductName + "  Version: " +
      this.ProductVersion;  
}
void AboutDialog_Load( Object^ /*sender*/, EventArgs^ /*e*/ )
{
   // Display the application information in the label.
   this->labelVersionInfo->Text = String::Format(  "{0}
 {1} Version: {2}", this->CompanyName, this->ProductName,
 this->ProductVersion );
}
private void AboutDialog_Load(Object sender,
 EventArgs e)
{
    // Display the application information in the label.
    this.labelVersionInfo.set_Text(this.get_CompanyName()
 + "  " 
        + this.get_ProductName() + "  Version: " 
        + this.get_ProductVersion());
} //AboutDialog_Load
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

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

   

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



Control.ProductVersion プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS