Udostępnij za pośrednictwem


'<classname1>' cannot inherit from <type> '<classname2>' because '<classname2>' is declared 'NotInheritable'

A class attempts to inherit from another class, but the desired base class is specified as NotInheritable. NotInheritable classes are used primarily to prevent unintended derivation.

Error ID: BC30299

To correct this error

  • Remove the NotInheritable keyword from the definition of the desired base class, or remove the Inherits statement.

See Also

Concepts

Inheritance Basics

Reference

NotInheritable

Inherits Statement