Interface '<interfacename>' cannot inherit from itself: <message>

An Inherits Statement in an interface definition specifies its own interface.

An interface can inherit from another interface, which provides it with all the members of the interface it inherits from, so it does not have to define those members again. Such an interface is called a derived interface, and the interface it inherits from is called the base interface.

It is meaningless for an interface to inherit from itself, because it already possesses all its own members.

Error ID: BC30296

To correct this error

  1. Check the spelling of the interface name in the Inherits statement.

  2. If you do not intend to inherit from a different interface, remove the Inherits statement entirely.

  3. Examine the cited message for suggestions.

See Also

Other Resources

Inheritance in Visual Basic

Interfaces in Visual Basic