Delen via


SuppressionDescriptor Class

Definition

Provides a description about a programmatic suppression of a Diagnostic by a DiagnosticSuppressor.

public sealed class SuppressionDescriptor : IEquatable<Microsoft.CodeAnalysis.SuppressionDescriptor>
type SuppressionDescriptor = class
    interface IEquatable<SuppressionDescriptor>
Public NotInheritable Class SuppressionDescriptor
Implements IEquatable(Of SuppressionDescriptor)
Inheritance
SuppressionDescriptor
Implements

Constructors

SuppressionDescriptor(String, String, LocalizableString)

Create a SuppressionDescriptor, which provides a localizable justification about a programmatic suppression of a Diagnostic.

SuppressionDescriptor(String, String, String)

Create a SuppressionDescriptor, which provides a justification about a programmatic suppression of a Diagnostic. NOTE: For localizable justification, use constructor overload SuppressionDescriptor(String, String, LocalizableString).

Properties

Id

An unique identifier for the suppression.

Justification

A localizable justification about the suppression.

SuppressedDiagnosticId

Identifier of the suppressed diagnostic, i.e. Id.

Methods

Equals(Object)
Equals(SuppressionDescriptor)
GetHashCode()

Applies to