ToolStripComboBox.OnUnsubscribeControlEvents(Control) 메서드

정의

지정한 컨트롤에서 이벤트의 등록을 취소합니다.

protected:
 override void OnUnsubscribeControlEvents(System::Windows::Forms::Control ^ control);
protected override void OnUnsubscribeControlEvents (System.Windows.Forms.Control control);
override this.OnUnsubscribeControlEvents : System.Windows.Forms.Control -> unit
Protected Overrides Sub OnUnsubscribeControlEvents (control As Control)

매개 변수

control
Control

이벤트의 등록을 취소할 컨트롤입니다.

설명

에 구독된 이벤트를 구독 취소하도록 메서드를 재정 OnSubscribeControlEvents 의합니다 OnSubscribeControlEvents.

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

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

상속자 참고

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

적용 대상