Suppression.Create(SuppressionDescriptor, Diagnostic) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a suppression of a Diagnostic with the given SuppressionDescriptor.
public static Microsoft.CodeAnalysis.Diagnostics.Suppression Create (Microsoft.CodeAnalysis.SuppressionDescriptor descriptor, Microsoft.CodeAnalysis.Diagnostic suppressedDiagnostic);
static member Create : Microsoft.CodeAnalysis.SuppressionDescriptor * Microsoft.CodeAnalysis.Diagnostic -> Microsoft.CodeAnalysis.Diagnostics.Suppression
Public Shared Function Create (descriptor As SuppressionDescriptor, suppressedDiagnostic As Diagnostic) As Suppression
Parameters
- descriptor
- SuppressionDescriptor
Descriptor for the suppression, which must be from SupportedSuppressions for the DiagnosticSuppressor creating this suppression.
- suppressedDiagnostic
- Diagnostic
Diagnostic to be suppressed, which must be from ReportedDiagnostics for the suppression context in which this suppression is being created.
Returns
Applies to
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET