CompilationOptions.WithSpecificDiagnosticOptions 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
WithSpecificDiagnosticOptions(IEnumerable<KeyValuePair<String,ReportDiagnostic>>) |
使用指定的診斷特定選項建立新的選項實例。 |
WithSpecificDiagnosticOptions(ImmutableDictionary<String,ReportDiagnostic>) |
使用指定的診斷特定選項建立新的選項實例。 |
WithSpecificDiagnosticOptions(IEnumerable<KeyValuePair<String,ReportDiagnostic>>)
使用指定的診斷特定選項建立新的選項實例。
public:
Microsoft::CodeAnalysis::CompilationOptions ^ WithSpecificDiagnosticOptions(System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, Microsoft::CodeAnalysis::ReportDiagnostic>> ^ value);
public Microsoft.CodeAnalysis.CompilationOptions WithSpecificDiagnosticOptions (System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,Microsoft.CodeAnalysis.ReportDiagnostic>> value);
member this.WithSpecificDiagnosticOptions : seq<System.Collections.Generic.KeyValuePair<string, Microsoft.CodeAnalysis.ReportDiagnostic>> -> Microsoft.CodeAnalysis.CompilationOptions
Public Function WithSpecificDiagnosticOptions (value As IEnumerable(Of KeyValuePair(Of String, ReportDiagnostic))) As CompilationOptions
參數
傳回
適用於
WithSpecificDiagnosticOptions(ImmutableDictionary<String,ReportDiagnostic>)
使用指定的診斷特定選項建立新的選項實例。
public:
Microsoft::CodeAnalysis::CompilationOptions ^ WithSpecificDiagnosticOptions(System::Collections::Immutable::ImmutableDictionary<System::String ^, Microsoft::CodeAnalysis::ReportDiagnostic> ^ value);
public Microsoft.CodeAnalysis.CompilationOptions WithSpecificDiagnosticOptions (System.Collections.Immutable.ImmutableDictionary<string,Microsoft.CodeAnalysis.ReportDiagnostic> value);
public Microsoft.CodeAnalysis.CompilationOptions WithSpecificDiagnosticOptions (System.Collections.Immutable.ImmutableDictionary<string,Microsoft.CodeAnalysis.ReportDiagnostic>? value);
member this.WithSpecificDiagnosticOptions : System.Collections.Immutable.ImmutableDictionary<string, Microsoft.CodeAnalysis.ReportDiagnostic> -> Microsoft.CodeAnalysis.CompilationOptions
Public Function WithSpecificDiagnosticOptions (value As ImmutableDictionary(Of String, ReportDiagnostic)) As CompilationOptions