Default property '<propertyname1>' conflicts with default property '<propertyname2>' in '<classname>' and so should be declared 'Shadows'

A property is declared with the same name as a property defined in the base class. In this situation, the property in this class should shadow the base class property.

This message is a warning. Shadows is assumed by default. For more information about hiding warnings or treating warnings as errors, see Configuring Warnings in Visual Basic.

Error ID: BC40007

To correct this error

  • Add the Shadows keyword to the declaration, or change the name of the property being declared.

See Also

Shadows
Shadowing in Visual Basic