ObsoleteAttribute Constructor

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the ObsoleteAttribute class.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodObsoleteAttribute()

Initializes a new instance of the ObsoleteAttribute class with default properties.

System_CAPS_pubmethodObsoleteAttribute(String)

Initializes a new instance of the ObsoleteAttribute class with a specified workaround message.

System_CAPS_pubmethodObsoleteAttribute(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.

Return to top
Show: