InstallerCommitted Event
 

Occurs after all the installers in the property have committed their installations.

Namespace:   System.Configuration.Install
Assembly:  System.Configuration.Install (in System.Configuration.Install.dll)

public event InstallEventHandler Committed
public:
event InstallEventHandler^ Committed {
	void add(InstallEventHandler^ value);
	void remove(InstallEventHandler^ value);
}
member Committed : IEvent<InstallEventHandler,
    InstallEventArgs>
Public Event Committed As InstallEventHandler

The following example demonstrates the Committed event. It is raised by the OnCommitted method.

public MyInstallerClass() :base()
{
   // Attach the 'Committed' event.
   this.Committed += new InstallEventHandler(MyInstaller_Committed);
}

// Event handler for 'Committed' event.
private void MyInstaller_Committed(object sender, InstallEventArgs e)
{
   Console.WriteLine("Committed Event occured.");
}
Public Sub New()
   MyBase.New()
   ' Attach the 'Committed' event.
   AddHandler Me.Committed, AddressOf MyInstaller_Committed
End Sub 'NewNew

' Event handler for 'Committed' event.
Private Sub MyInstaller_Committed(ByVal sender As Object, ByVal e As InstallEventArgs)
   Console.WriteLine("")
   Console.WriteLine("Committed Event occured.")
   Console.WriteLine("")
End Sub 'MyInstaller_Committed
public:
   MyInstallerClass()
   {
      // Attach the 'Committed' event.
      this->Committed += gcnew InstallEventHandler( this, &MyInstallerClass::MyInstaller_Committed );
   }

private:
   // Event handler for 'Committed' event.
   void MyInstaller_Committed( Object^ sender, InstallEventArgs^ e )
   {
      Console::WriteLine( "Committed Event occured." );
   }
.NET Framework
Available since 1.1
Return to top