다음을 통해 공유


Installer.Committed 이벤트

정의

Installers 속성의 모든 설치 관리자가 설치를 커밋한 후에 발생합니다.

public:
 event System::Configuration::Install::InstallEventHandler ^ Committed;
public event System.Configuration.Install.InstallEventHandler Committed;
member this.Committed : System.Configuration.Install.InstallEventHandler 
Public Custom Event Committed As InstallEventHandler 

이벤트 유형

예제

다음 예제에서는 이벤트를 보여 줍니다 Committed . 메서드에 의해 발생합니다 OnCommitted .

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 occurred." );
   }
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 occurred.");
}
Public Sub New()
   MyBase.New()
   ' Attach the 'Committed' event.
   AddHandler Me.Committed, AddressOf MyInstaller_Committed
End Sub

' Event handler for 'Committed' event.
Private Sub MyInstaller_Committed(ByVal sender As Object, ByVal e As InstallEventArgs)
   Console.WriteLine("")
   Console.WriteLine("Committed Event occurred.")
   Console.WriteLine("")
End Sub

적용 대상

추가 정보