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.
The implementation of a partial method must be declared Private. For example, the following code causes this error.
Partial Class Product
' Declaration of the partial method.
Partial Private Sub valueChanged()
End Sub
End Class
Partial Class Product
' Implementation of the partial method, with Private missing,
' causes this error.
'Sub valueChanged()
' MsgBox(Value was changed to " & Me.Quantity)
'End Sub
End Class
Error ID: BC31441
To correct this error
Use the access modifier Private in the implementation of the partial method, as shown in the following example.
Private Sub valueChanged() MsgBox(Value was changed to " & Me.Quantity) End Sub