Delen via


CompilationOptions.WithGeneralDiagnosticOption(ReportDiagnostic) Method

Definition

Creates a new options instance with the specified general diagnostic option.

public:
 Microsoft::CodeAnalysis::CompilationOptions ^ WithGeneralDiagnosticOption(Microsoft::CodeAnalysis::ReportDiagnostic value);
public Microsoft.CodeAnalysis.CompilationOptions WithGeneralDiagnosticOption (Microsoft.CodeAnalysis.ReportDiagnostic value);
member this.WithGeneralDiagnosticOption : Microsoft.CodeAnalysis.ReportDiagnostic -> Microsoft.CodeAnalysis.CompilationOptions
Public Function WithGeneralDiagnosticOption (value As ReportDiagnostic) As CompilationOptions

Parameters

Returns

Applies to