Installer.OnCommitted(IDictionary) 메서드

정의

Committed 이벤트를 발생시킵니다.

protected:
 virtual void OnCommitted(System::Collections::IDictionary ^ savedState);
protected virtual void OnCommitted (System.Collections.IDictionary savedState);
abstract member OnCommitted : System.Collections.IDictionary -> unit
override this.OnCommitted : System.Collections.IDictionary -> unit
Protected Overridable Sub OnCommitted (savedState As IDictionary)

매개 변수

savedState
IDictionary

IDictionary 속성의 모든 설치 관리자가 실행된 후의 컴퓨터 상태가 포함된 Installers입니다.

예제

다음 예제에서는 클래스의 OnCommitted 메서드를 보여 줍니다 Installer . 메서드는 OnCommitted 파생 클래스에서 재정의됩니다. 사용자가 커밋하기 전과 커밋 후 수행할 단계를 추가할 수 있는 공간이 제공됩니다.

   // Override the 'OnCommitted' method.
protected:
   virtual void OnCommitted( IDictionary^ savedState ) override
   {
      Installer::OnCommitted( savedState );
      
      // Add steps to be done after committing an application.
      Console::WriteLine( "The OnCommitted method of MyInstaller called" );
   }
// Override the 'OnCommitted' method.
protected override void OnCommitted(IDictionary savedState)
{
   base.OnCommitted(savedState);
   // Add steps to be done after committing an application.
   Console.WriteLine("The OnCommitted method of MyInstaller called");
}
' Override the 'OnCommitted' method.
Protected Overrides Sub OnCommitted(savedState As IDictionary)
   MyBase.OnCommitted(savedState)
   ' Add steps to be done after committing an application.
   Console.WriteLine("The OnCommitted method of MyInstaller called")
End Sub

설명

이 메서드는 이 instance 설치 관리자 컬렉션에 포함된 모든 설치 관리자의 메서드가 실행된 후에 Commit 호출됩니다.

이벤트가 발생하면 대리자를 통해 이벤트 처리기가 호출됩니다. 자세한 내용은 이벤트 처리 및 발생합니다.

OnCommitted 메서드를 사용 하면 파생된 클래스가 대리자를 연결 하지 않고 이벤트를 처리할 수 있습니다. 이는 파생 클래스에서 이벤트를 처리하는 기본 방법입니다.

상속자 참고

파생 클래스에서 OnCommitted(IDictionary)를 재정의하는 경우 등록된 대리자가 이벤트를 받도록 기본 클래스의 OnCommitted(IDictionary) 메서드를 호출해야 합니다.

적용 대상

추가 정보