ObsoleteAttribute Constructor (String, Boolean)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
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.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- message
- Type: System.String
The text string that describes alternative workarounds.
- error
- Type: System.Boolean
The Boolean value that indicates whether the obsolete element usage is considered an error.
The following table shows the initial property values for an instance of ObsoleteAttribute.
Show: