Bridge

ObsoleteAttribute Members

The ObsoleteAttribute type exposes the following members.

Constructors


  Name Description
Public method ObsoleteAttribute()()()()
Initializes a new instance of the ObsoleteAttribute class with default properties.
Public method ObsoleteAttribute(String)
Initializes a new instance of the ObsoleteAttribute class with a specified workaround message.
Public method ObsoleteAttribute(String, Boolean)
Initializes a new instance of the ObsoleteAttribute class with a workaround message and a Boolean value indicating whether the obsolete element usage is considered an error.

Properties


  Name Description
Public property IsError
Gets a Boolean value indicating whether the compiler will treat usage of the obsolete program element as an error.
Public property Message
Gets the workaround message, including a description of the alternative program elements.