Installer.AfterUninstall Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs after all the installers in the Installers property perform their uninstallation operations.
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
Event Type
Examples
The following example demonstrates the AfterUninstall event. It is raised by the OnAfterUninstall method.
// 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
Applies to
See also
Dolgozzon együtt velünk a GitHubon
A tartalom forrása a GitHubon található, ahol létrehozhat és áttekinthet problémákat és lekéréses kérelmeket is. További információért tekintse meg a közreműködői útmutatónkat.