Freigeben über


Installer.AfterUninstall Ereignis

Definition

Tritt ein, nachdem alle Installationsprogramme in der Installers-Eigenschaft ihre jeweiligen Deinstallationsvorgänge ausgeführt haben.

public:
 event System::Configuration::Install::InstallEventHandler ^ AfterUninstall;
public event System.Configuration.Install.InstallEventHandler AfterUninstall;
member this.AfterUninstall : System.Configuration.Install.InstallEventHandler 
Public Custom Event AfterUninstall As InstallEventHandler 

Ereignistyp

Beispiele

Das folgende Beispiel veranschaulicht das AfterUninstall Ereignis. Sie wird von der OnAfterUninstall -Methode ausgelöst.

   // 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() : 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'.
Sub New()
   MyBase.New()
   AddHandler AfterUninstall, AddressOf AfterUninstallEventHandler
End Sub

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

Gilt für:

Weitere Informationen