Delen via


SuppressionDescriptor Constructors

Definition

Overloads

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

SuppressionDescriptor(String, String, LocalizableString)

Source:
SuppressionDescriptor.cs
Source:
SuppressionDescriptor.cs
Source:
SuppressionDescriptor.cs
Source:
SuppressionDescriptor.cs
Source:
SuppressionDescriptor.cs
Source:
SuppressionDescriptor.cs
Source:
SuppressionDescriptor.cs
Source:
SuppressionDescriptor.cs
Source:
SuppressionDescriptor.cs
Source:
SuppressionDescriptor.cs
Source:
SuppressionDescriptor.cs
Source:
SuppressionDescriptor.cs
Source:
SuppressionDescriptor.cs
Source:
SuppressionDescriptor.cs
Source:
SuppressionDescriptor.cs
Source:
SuppressionDescriptor.cs
Source:
SuppressionDescriptor.cs
Source:
SuppressionDescriptor.cs
Source:
SuppressionDescriptor.cs
Source:
SuppressionDescriptor.cs

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

public SuppressionDescriptor (string id, string suppressedDiagnosticId, Microsoft.CodeAnalysis.LocalizableString justification);
new Microsoft.CodeAnalysis.SuppressionDescriptor : string * string * Microsoft.CodeAnalysis.LocalizableString -> Microsoft.CodeAnalysis.SuppressionDescriptor
Public Sub New (id As String, suppressedDiagnosticId As String, justification As LocalizableString)

Parameters

id
String

A unique identifier for the suppression. For example, suppression ID "SP1001".

suppressedDiagnosticId
String

Identifier of the suppressed diagnostic, i.e. Id. For example, compiler warning Id "CS0649".

justification
LocalizableString

Justification for the suppression. For example: "Suppress CS0649 on fields marked with YYY attribute as they are implicitly assigned.".

Applies to

SuppressionDescriptor(String, String, String)

Source:
SuppressionDescriptor.cs
Source:
SuppressionDescriptor.cs
Source:
SuppressionDescriptor.cs
Source:
SuppressionDescriptor.cs
Source:
SuppressionDescriptor.cs
Source:
SuppressionDescriptor.cs
Source:
SuppressionDescriptor.cs
Source:
SuppressionDescriptor.cs
Source:
SuppressionDescriptor.cs
Source:
SuppressionDescriptor.cs
Source:
SuppressionDescriptor.cs
Source:
SuppressionDescriptor.cs
Source:
SuppressionDescriptor.cs
Source:
SuppressionDescriptor.cs
Source:
SuppressionDescriptor.cs
Source:
SuppressionDescriptor.cs
Source:
SuppressionDescriptor.cs
Source:
SuppressionDescriptor.cs
Source:
SuppressionDescriptor.cs
Source:
SuppressionDescriptor.cs

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

public SuppressionDescriptor (string id, string suppressedDiagnosticId, string justification);
new Microsoft.CodeAnalysis.SuppressionDescriptor : string * string * string -> Microsoft.CodeAnalysis.SuppressionDescriptor
Public Sub New (id As String, suppressedDiagnosticId As String, justification As String)

Parameters

id
String

A unique identifier for the suppression. For example, suppression ID "SP1001".

suppressedDiagnosticId
String

Identifier of the suppressed diagnostic, i.e. Id. For example, compiler warning Id "CS0649".

justification
String

Justification for the suppression. For example: "Suppress CS0649 on fields marked with YYY attribute as they are implicitly assigned.".

Applies to