description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | |||
---|---|---|---|---|---|---|---|---|
Learn more about: BC40008: '<elementname>' is obsolete (Visual Basic Warning) |
'<elementname>' is obsolete (Visual Basic Warning) |
07/20/2015 |
|
|
729e3eb5-76ac-4c55-9fdd-78350e0de55e |
A statement attempts to access a programming element which has been marked with the xref:System.ObsoleteAttribute attribute and the directive to treat it as a warning.
You can mark any programming element as being no longer in use by applying xref:System.ObsoleteAttribute to it. If you do this, you can set the attribute's xref:System.ObsoleteAttribute.IsError%2A property to either True
or False
. If you set it to True
, the compiler treats an attempt to use the element as an error. If you set it to False
, or let it default to False
, the compiler issues a warning if there is an attempt to use the element.
By default, this message is a warning, because the xref:System.ObsoleteAttribute.IsError%2A property of xref:System.ObsoleteAttribute is False
. For more information about hiding warnings or treating warnings as errors, see Configuring Warnings in Visual Basic.
Error ID: BC40008
- Ensure that the source-code reference is spelling the element name correctly.