다음을 통해 공유


'AddHandler' 또는 'RemoveHandler' 문의 이벤트 피연산자는 점으로 한정된 식이거나 단순한 이름이어야 합니다.

업데이트: 2007년 11월

'AddHandler' or 'RemoveHandler' statement event operand must be a dot-qualified expression or a simple name

AddHandler 또는 RemoveHandler에 대한 이벤트 인수로 지정된 항목이 이벤트로 인식되지 않습니다.

오류 ID: BC30677

이 오류를 해결하려면

  • 다음 예제와 같이 이벤트를 발생시키는 개체의 이름 뒤에 점(.)을 붙인 다음 이벤트 이름을 지정합니다.

    ' Assume that the class Wobject has an event named ThisEvent.
    Dim wObj As New Wobject
    ' Assume that this class has as method named ThisEventHandler.
    AddHandler wObj.ThisEvent, AddressOf Me.ThisEventHandler
    

참고 항목

개념

AddHandler 및 RemoveHandler

참조

AddHandler 문

RemoveHandler 문

기타 리소스

Visual Basic의 이벤트