Post­Sharp Documentation / 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: 5.0.51.0 (5.0.51.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.
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
Remarks
See Also