共用方式為


CompilationOptions.WithGeneralDiagnosticOption(ReportDiagnostic) 方法

定義

使用指定的一般診斷選項建立新的選項實例。

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

參數

傳回

適用於