Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
A derived class does not declare a constructor, and Visual Basic cannot generate one because there is no base class constructor it can call.
When a derived class does not declare a constructor, Visual Basic attempts to generate an implicit parameterless constructor that calls MyBase.New(). If there is no accessible constructor in the base class that can be called without arguments, or if there is more than one, Visual Basic cannot generate an implicit constructor.
Error ID: BC30387
To correct this error
Declare and implement at least one Sub New constructor somewhere in the derived class.
Add a call to a base class constructor, MyBase.New(), as the first line of every Sub New.
See Also
Concepts
Object Lifetime: How Objects Are Created and Destroyed