Edit

Share via


'<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