Partial 메서드는 'Private'으로 선언해야 합니다.
업데이트: 2007년 11월
Partial methods must be declared 'Private'
액세스 한정자 Private은 부분 메서드 선언에 필요합니다. 다음 예제에서는 메서드 시그니처에 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: BC31432
이 오류를 해결하려면
- 시그니처 및 구현 선언에서 Sub 앞에 Private 키워드를 추가합니다.