'<modifier>' is not valid on an Interface declaration

You have used a modifier that is not valid on an Interface declaration. The only valid modifiers for Sub, Function, or Property statements declared in an Interface declaration are the Overloads and Default keywords. Other modifiers, such as Public, Private, Friend, Protected, Shared, Static, Overrides, MustOverride and Overridable, are not valid.

Error ID: BC30397

To correct this error

  • Remove the modifier.

See Also

Concepts

Interface Definition