Statement cannot appear within an interface body

The declaration of an interface member includes a statement terminating the member, of the form Endmembername.

An interface defines only the signature of its members. Consequently, procedures and properties defined in an interface have only their initial line, specifying the name and signature. You do not include any code, internal declarations, or an End Function, End Property, or End Sub statement inside the interface.

Error ID: BC30603

To correct this error

  • Remove the Endmembername statement from the interface definition.

See Also

Reference

Interface Statement (Visual Basic)

End (Visual Basic)