PostSharpAPI ReferencePost­Sharp.​ExtensibilitySuppress­Warning­Attribute
Open sandboxFocus

SuppressWarningAttribute Class

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

Inheritance
SuppressWarningAttribute
Namespace: PostSharp.Extensibility
Assembly: PostSharp.dll
Syntax
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.