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

Namespace: PostSharp.Extensibility
Assembly: PostSharp (in PostSharp.dll) Version: 5.0.55.0 (5.0.55.0)

C#
public class SuppressWarningAttribute : Attribute
The SuppressWarningAttribute type exposes the following members.

Name | Description | |
---|---|---|
![]() | SuppressWarningAttribute |
Creates a new instance of SuppressWarningAttribute.
|

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.
|

Name | Description | |
---|---|---|
![]() | QueryInterface<T> |
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.) |

