Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
When parameters are supplied for the declaration and implementation of a partial method, the names of the corresponding parameters must be the same. For example, the following code causes this error.
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
Error ID: BC31442
To correct this error
- Change the parameter name or names in the declaration or in the implementation so that corresponding parameters have the same name.