Installer.Committing 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
發生於 Installers 屬性中的安裝程式認可其安裝之前。
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
事件類型
範例
下列範例示範 Committing 事件。 它會由 OnCommitting 方法引發。
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