RuleSet.WithEffectiveAction(ReportDiagnostic) Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Erstellen Sie ein RuleSet mit einer globalen effektiven Aktion, die darauf angewendet wird.
public:
Microsoft::CodeAnalysis::RuleSet ^ WithEffectiveAction(Microsoft::CodeAnalysis::ReportDiagnostic action);
public Microsoft.CodeAnalysis.RuleSet WithEffectiveAction(Microsoft.CodeAnalysis.ReportDiagnostic action);
public Microsoft.CodeAnalysis.RuleSet? WithEffectiveAction(Microsoft.CodeAnalysis.ReportDiagnostic action);
member this.WithEffectiveAction : Microsoft.CodeAnalysis.ReportDiagnostic -> Microsoft.CodeAnalysis.RuleSet
Public Function WithEffectiveAction (action As ReportDiagnostic) As RuleSet
Parameter
- action
- ReportDiagnostic