Installer.Committing 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 before the installers in the Installers property commit their installations.
public:
event System::Configuration::Install::InstallEventHandler ^ Committing;
public event System.Configuration.Install.InstallEventHandler Committing;
member this.Committing : System.Configuration.Install.InstallEventHandler
Public Custom Event Committing As InstallEventHandler
Event Type
Examples
The following example demonstrates the Committing event. It is raised by the OnCommitting method.
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 occurred." );
}
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 occurred.");
}
Public Sub New()
MyBase.New()
' Attach the 'Committing' event.
AddHandler Me.Committing, AddressOf MyInstaller_Committing
End Sub
' Event handler for 'Committing' event.
Private Sub MyInstaller_Committing(ByVal sender As Object, _
ByVal e As InstallEventArgs)
Console.WriteLine("Committing Event occurred.")
End Sub
Applies to
See also
Colaborați cu noi pe GitHub
Sursa pentru acest conținut poate fi găsită pe GitHub, unde puteți, de asemenea, să creați și să consultați probleme și solicitări de tragere. Pentru mai multe informații, consultați ghidul nostru pentru colaboratori.