Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 1.31 KB

default-property-propertyname1-conflicts-with-default-property-propertyname2.md

File metadata and controls

27 lines (20 loc) · 1.31 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: BC40007: Default property '<propertyname1>' conflicts with default property '<propertyname2>' in '<classname>' and so should be declared 'Shadows
Default property '<propertyname1>' conflicts with default property '<propertyname2>' in '<classname>' and so should be declared 'Shadows'
07/20/2015
vbc40007
bc40007
BC40007
692ccf76-5715-4f11-a972-84cf9de30bc1

BC40007: 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