Open sandboxFocus

Class SuppressWarningAttribute

Instructs PostSharp to ignore warnings and information messages. Errors cannot be ignored.

Inheritance
SuppressWarningAttribute
Namespace: PostSharp.Extensibility
Assembly: PostSharp.dll
Syntax
[AttributeUsage(AttributeTargets.All, AllowMultiple = true, Inherited = false)]
public class SuppressWarningAttribute : Attribute

Constructors

Name Description
SuppressWarningAttribute(string)

Creates a new instance of SuppressWarningAttribute.

Properties

Name Description
MessageId

Gets the identifier of the ignored warning.

Reason

Gets or set the reason (a human-readable text) why the warning must be ignored.