Constructs and initializes a new instance of the ObsoleteAttribute class with a string that contains suggested workarounds and a bool that indicates whether the compiler treats usage of the target of the current instance as an error.
Respectively, the ObsoleteAttribute.Message property and the ObsoleteAttribute.IsError property of the new instance are initialized as message and error.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0