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

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

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


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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


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