부분 메서드(Partial Method)의 선언 및 구현에 대해 매개 변수를 제공하는 경우 해당 매개 변수의 이름이 같아야 합니다. 예를 들어 다음 코드에서는 이 오류를 생성합니다.
Partial Class Product
' Declaration of the partial method.
Partial Private Sub valueChanged(ByVal newVal As Integer)
End Sub
End Class
Partial Class Product
' Implementation of the partial method. This error is
' reported for parameter val.
' Private Sub valueChanged(ByVal val As Integer)
' MsgBox(Value was changed to " & Me.Quantity)
' End Sub
End Class
오류 ID: BC31442
이 오류를 해결하려면
- 해당 매개 변수의 이름이 같도록 선언 또는 구현에서 매개 변수 이름을 변경합니다.
참고 항목
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET