Installer.AfterUninstall 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
發生於 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