Installer.OnBeforeInstall メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > Installer.OnBeforeInstall メソッドの意味・解説 

Installer.OnBeforeInstall メソッド

BeforeInstall イベント発生させます

名前空間: System.Configuration.Install
アセンブリ: System.Configuration.Install (system.configuration.install.dll 内)
構文構文

Protected Overridable Sub
 OnBeforeInstall ( _
    savedState As IDictionary _
)
Dim savedState As IDictionary

Me.OnBeforeInstall(savedState)
protected virtual void OnBeforeInstall (
    IDictionary savedState
)
protected:
virtual void OnBeforeInstall (
    IDictionary^ savedState
)
protected void OnBeforeInstall (
    IDictionary savedState
)
protected function OnBeforeInstall (
    savedState : IDictionary
)

パラメータ

savedState

Installers プロパティ内のインストーラインストールされる前のコンピュータの状態を格納する IDictionary。この IDictionary オブジェクトは、この時点では空であることが必要です。

解説解説
使用例使用例

OnBeforeInstall メソッドの例を次に示します。このメソッドは、派生クラスオーバーライドされますOnBeforeInstall メソッドには、インストール前に実行する手順追加するための領域用意されています。

' Override the 'OnBeforeInstall' method.
Protected Overrides Sub
 OnBeforeInstall(savedState As IDictionary)
   MyBase.OnBeforeInstall(savedState)
   ' Add steps to be done before the installation starts.
   Console.WriteLine("OnBeforeInstall method of MyInstaller called")
End Sub 'OnBeforeInstall
// Override the 'OnBeforeInstall' method.
protected override void OnBeforeInstall(IDictionary
 savedState)
{
   base.OnBeforeInstall(savedState);
   // Add steps to be done before the installation starts.
   Console.WriteLine("OnBeforeInstall method of MyInstaller called");
}
   // Override the 'OnBeforeInstall' method.
protected:
   virtual void OnBeforeInstall( IDictionary^ savedState ) override
   {
      Installer::OnBeforeInstall( savedState );
      
      // Add steps to be done before the installation starts.
      Console::WriteLine( "OnBeforeInstall method of MyInstaller called"
 );
   }
// Override the 'OnBeforeInstall' method.
protected void OnBeforeInstall(IDictionary
 savedState)
{
    super.OnBeforeInstall(savedState);

    // Add steps to be done before the installation starts.
    Console.WriteLine("OnBeforeInstall method of MyInstaller called");
} //OnBeforeInstall
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
Installer クラス
Installer メンバ
System.Configuration.Install 名前空間
OnAfterInstall
OnAfterRollback
OnAfterUninstall
OnCommitting
OnCommitted
OnBeforeRollback
OnBeforeUninstall


このページでは「.NET Framework クラス ライブラリ リファレンス」からInstaller.OnBeforeInstall メソッドを検索した結果を表示しています。
Weblioに収録されているすべての辞書からInstaller.OnBeforeInstall メソッドを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からInstaller.OnBeforeInstall メソッド を検索

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

辞書ショートカット

すべての辞書の索引

Installer.OnBeforeInstall メソッドのお隣キーワード
検索ランキング

   

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



Installer.OnBeforeInstall メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS