InstallerCommitting Event
 

Occurs before the installers in the property committ their installations.

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

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

The following example demonstrates the Committing event. It is raised by the OnCommitting method.

public MyInstallerClass() :base()
{
   // Attach the 'Committing' event.
   this.Committing += new InstallEventHandler(MyInstaller_Committing);
}
// Event handler for 'Committing' event.
private void MyInstaller_Committing(object sender, InstallEventArgs e)
{
   Console.WriteLine("Committing Event occured.");
}
Public Sub New()
   MyBase.New()
   ' Attach the 'Committing' event.
   AddHandler Me.Committing, AddressOf MyInstaller_Committing
End Sub 'NewNew

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

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