Installer.BeforeUninstall イベント
アセンブリ: System.Configuration.Install (system.configuration.install.dll 内)

Dim instance As Installer Dim handler As InstallEventHandler AddHandler instance.BeforeUninstall, handler
public: event InstallEventHandler^ BeforeUninstall { void add (InstallEventHandler^ value); void remove (InstallEventHandler^ value); }

BeforeUninstall イベントの例を次に示します。これは OnBeforeUninstall メソッドによって発生します。
' MyInstaller is derived from the class 'Installer'. Sub New() MyBase.New() AddHandler BeforeUninstall, AddressOf BeforeUninstallEventHandler End Sub 'New Private Sub BeforeUninstallEventHandler(sender As Object, e As InstallEventArgs) ' Add steps to perform any actions before the Uninstall process. Console.WriteLine("Code for BeforeUninstallEventHandler") End Sub 'BeforeUninstallEventHandler
// MyInstaller is derived from the class 'Installer'. MyInstaller() : base() { BeforeUninstall += new InstallEventHandler(BeforeUninstallEventHandler); } private void BeforeUninstallEventHandler(object sender, InstallEventArgs e) { // Add steps to perform any actions before the Uninstall process. Console.WriteLine("Code for BeforeUninstallEventHandler"); }
// MyInstaller is derived from the class 'Installer'. private: MyInstaller() { BeforeUninstall += gcnew InstallEventHandler( this, &MyInstaller::BeforeUninstallEventHandler ); } void BeforeUninstallEventHandler( Object^ sender, InstallEventArgs^ e ) { // Add steps to perform any actions before the Uninstall process. Console::WriteLine( "Code for BeforeUninstallEventHandler" ); }
// MyInstaller is derived from the class 'Installer'. MyInstaller() { this.add_BeforeUninstall( new InstallEventHandler(BeforeUninstallEventHandler)); } //MyInstaller private void BeforeUninstallEventHandler(Object sender, InstallEventArgs e) { // Add steps to perform any actions before the Uninstall process. Console.WriteLine("Code for BeforeUninstallEventHandler"); } //BeforeUninstallEventHandler


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からInstaller.BeforeUninstall イベントを検索する場合は、下記のリンクをクリックしてください。

- Installer.BeforeUninstall イベントのページへのリンク