다음을 통해 공유


Installer.AfterUninstall 이벤트

정의

Installers 속성의 모든 설치 관리자가 제거 작업을 수행한 후에 발생합니다.

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 

이벤트 유형

예제

다음 예제에서는 이벤트를 보여 줍니다 AfterUninstall . 메서드에 의해 발생합니다 OnAfterUninstall .

   // 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

적용 대상

추가 정보