PostSharp6.2/API Reference/Post­Sharp.​Extensibility Namespace/Suppress­Warning­Attribute Class

SuppressWarningAttribute Class

Instructs PostSharp to ignore warnings and information messages. Errors cannot be ignored.
Inheritance Hierarchy
System.Object
  System.Attribute
    PostSharp.Extensibility.SuppressWarningAttribute

Namespace:  PostSharp.Extensibility
Assembly:  PostSharp (in PostSharp.dll) Version: 6.2.13.0 (6.2.13.0)
Syntax
C#
public class SuppressWarningAttribute : Attribute

The SuppressWarningAttribute type exposes the following members.

Constructors
  NameDescription
Public methodSuppressWarningAttribute
Creates a new instance of SuppressWarningAttribute.
Properties
  NameDescription
Public propertyMessageId
Gets the identifier of the ignored warning.
Public propertyReason
Gets or set the reason (a human-readable text) why the warning must be ignored.
Remarks
See Also