Mono Class Library: System.ObsoleteAttribute Overview | Members

System.ObsoleteAttribute Constructor

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.

public ObsoleteAttribute (string message, bool error)

Parameters

message
A string that contains suggested workarounds.
error
A bool that indicates whether the compiler treats usage of the target of the current instance as an error.

Remarks

Respectively, the ObsoleteAttribute.Message property and the ObsoleteAttribute.IsError property of the new instance are initialized as message and error.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0