The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

First statement of this 'Sub New' must be a call to 'MyBase.New' or 'MyClass.New' (No Accessible Constructor Without Parameters) 

Error Message

First statement of this 'Sub New' must be a call to 'MyBase.New' or 'MyClass.New' because base class '<basename>' of '<derivedname>' does not have an accessible 'Sub New' that can be called with no arguments.

In a derived class, every constructor must call a base class constructor (MyBase.New). If the base class has a constructor with no parameters that is accessible to derived classes, MyBase.New can be called automatically. If not, a base class constructor must be called with parameters, and this cannot be done automatically. In this case, the first statement of every derived class constructor must call a parameterized constructor on the base class, or call another constructor in the derived class that makes a base class constructor call.

Error ID: BC30148

To correct this error

  • Either call MyBase.New supplying the required parameters, or call a peer constructor that makes such a call.

See Also

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft