PostSharp 4.3 / / Post­Sharp Documentation / API Reference / Post­Sharp Namespace / Ignore­Warning­Attribute Class
IgnoreWarningAttribute Class
Instructs PostSharp to ignore warnings and information messages. Errors cannot be ignored.
Inheritance Hierarchy
System.Object
  System.Attribute
    PostSharp.IgnoreWarningAttribute

Namespace: PostSharp
Assembly: PostSharp (in PostSharp.dll) Version: 4.3.48.0 (4.3.48.0)
Syntax
C#
public sealed class IgnoreWarningAttribute : Attribute

The IgnoreWarningAttribute type exposes the following members.

Constructors
  NameDescription
Public methodIgnoreWarningAttribute
Creates a new instance of IgnoreWarningAttribute.
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