Share via


ObsoleteAttribute.IsError Property

Gets a Boolean value that indicates whether the compiler will treat the use of the obsolete program element as an error.

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

Syntax

public bool IsError { get; }

Property Value

true if the use of the obsolete element is considered an error; otherwise, false. Note that the default return value is false.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

ObsoleteAttribute Class
ObsoleteAttribute Members
System Namespace