Partager via


ObsoleteAttribute Constructor (String, Boolean)

Initializes a new instance of the ObsoleteAttribute class with a specified work-around message and a Boolean value that indicates whether the use of this obsolete program element is considered an error.

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

Syntax

public ObsoleteAttribute (
         string message,
         bool error
)

Parameters

  • message
    The text string that describes the available work-arounds (alternative approaches) for this situation.
  • error
    A Boolean value that indicates whether the use of this obsolete element is considered an error.

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