Gets the workaround message, including a description of the alternative program elements.
Assembly: mscorlib (in mscorlib.dll)
The following example defines a class that contains two members marked as obsolete. The first, a property named OldProperty, produces a compiler warning if it is called. The second, a method named CallOldMethod, produces a compiler error. The example uses reflection to get information about the ObsoleteAttribute attributes applied to members of the type and displays the values of their and IsError properties.