부분 메서드(Partial Method)는 '<accessModifier>' 대신 'Private'으로 선언해야 합니다.

액세스 한정자 Private 이 부분 메서드(Partial method) 선언에 필요합니다. 다음 예제에서는 메서드 서명 및 해당 구현에서 Private 을 사용하는 방법을 보여 줍니다.

' Definition of the partial method signature.  
Partial Private Sub OnNameChanged()  
    ' The body of the signature is empty.  
End Sub  
' Implementation of the partial method.  
Private Sub OnNameChanged()  
    MsgBox("Name was changed to " & Me.Name)  
End Sub  

오류 ID: BC31431

이 오류를 해결하려면

  • 서명 및 구현 선언에서 액세스 한정자를 Private 으로 변경합니다.

참고 항목