Parameter name '<parametername1>' does not match the name of the corresponding parameter, '<parametername2>', defined on the partial method declaration '<methodname>'
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.