class ObsoleteAttribute
Marks the program elements that are no longer in use. This class cannot be inherited.
public ObsoleteAttribute( string message )
Initializes a new instance of the class with a specified workaround message.
messageThe text string that describes alternative workarounds.
public ObsoleteAttribute( string message, bool error )
Initializes a new instance of the class with a workaround message and a Boolean value indicating whether the obsolete element usage is considered an error.
messageThe text string that describes alternative workarounds.errorif the obsolete element usage generates a compiler error; if it generates a compiler warning.
public bool IsError { get; }
Gets a Boolean value indicating whether the compiler will treat usage of the obsolete program element as an error.
- Returns if the obsolete element usage is considered an error; otherwise, . The default is .
public string Message { get; }
Gets the workaround message, including a description of the alternative program elements.
- Returns The workaround text string.
public string DiagnosticId { get; set; }
😔 No documentation found.
public string UrlFormat { get; set; }
😔 No documentation found.
public bool Equals( object obj )
😔 No documentation found.
public int GetHashCode( )
😔 No documentation found.
public object TypeId { get; }
😔 No documentation found.
public bool Match( object obj )
😔 No documentation found.
public bool IsDefaultAttribute( )
😔 No documentation found.
public Type GetType( )
😔 No documentation found.
public string ToString( )
😔 No documentation found.
public ObsoleteAttribute( )
😔 No documentation found.