DiagnosticAnalyzerAttribute(String, String[]) Constructor

Definition

Attribute constructor used to specify automatic application of a diagnostic analyzer.

public:
 DiagnosticAnalyzerAttribute(System::String ^ firstLanguage, ... cli::array <System::String ^> ^ additionalLanguages);
public DiagnosticAnalyzerAttribute (string firstLanguage, params string[] additionalLanguages);
new Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzerAttribute : string * string[] -> Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzerAttribute
Public Sub New (firstLanguage As String, ParamArray additionalLanguages As String())

Parameters

firstLanguage
String

One language to which the analyzer applies.

additionalLanguages
String[]

Additional languages to which the analyzer applies. See LanguageNames.

Applies to