Diagnostic.Create メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
Create(DiagnosticDescriptor, Location, Object[])
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
Diagnostic インスタンスを作成します。
public:
static Microsoft::CodeAnalysis::Diagnostic ^ Create(Microsoft::CodeAnalysis::DiagnosticDescriptor ^ descriptor, Microsoft::CodeAnalysis::Location ^ location, ... cli::array <System::Object ^> ^ messageArgs);
public static Microsoft.CodeAnalysis.Diagnostic Create (Microsoft.CodeAnalysis.DiagnosticDescriptor descriptor, Microsoft.CodeAnalysis.Location location, params object[] messageArgs);
public static Microsoft.CodeAnalysis.Diagnostic Create (Microsoft.CodeAnalysis.DiagnosticDescriptor descriptor, Microsoft.CodeAnalysis.Location? location, params object?[]? messageArgs);
public static Microsoft.CodeAnalysis.Diagnostic Create (Microsoft.CodeAnalysis.DiagnosticDescriptor descriptor, Microsoft.CodeAnalysis.Location location, params object?[] messageArgs);
static member Create : Microsoft.CodeAnalysis.DiagnosticDescriptor * Microsoft.CodeAnalysis.Location * obj[] -> Microsoft.CodeAnalysis.Diagnostic
Public Shared Function Create (descriptor As DiagnosticDescriptor, location As Location, ParamArray messageArgs As Object()) As Diagnostic
パラメーター
- descriptor
- DiagnosticDescriptor
診断を記述する 。DiagnosticDescriptor
- messageArgs
- Object[]
診断のメッセージの引数
戻り値
Diagnostic のインスタンスです。
適用対象
Create(DiagnosticDescriptor, Location, IEnumerable<Location>, Object[])
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
Diagnostic インスタンスを作成します。
public:
static Microsoft::CodeAnalysis::Diagnostic ^ Create(Microsoft::CodeAnalysis::DiagnosticDescriptor ^ descriptor, Microsoft::CodeAnalysis::Location ^ location, System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::Location ^> ^ additionalLocations, ... cli::array <System::Object ^> ^ messageArgs);
public static Microsoft.CodeAnalysis.Diagnostic Create (Microsoft.CodeAnalysis.DiagnosticDescriptor descriptor, Microsoft.CodeAnalysis.Location location, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Location> additionalLocations, params object[] messageArgs);
public static Microsoft.CodeAnalysis.Diagnostic Create (Microsoft.CodeAnalysis.DiagnosticDescriptor descriptor, Microsoft.CodeAnalysis.Location? location, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Location>? additionalLocations, params object?[]? messageArgs);
public static Microsoft.CodeAnalysis.Diagnostic Create (Microsoft.CodeAnalysis.DiagnosticDescriptor descriptor, Microsoft.CodeAnalysis.Location location, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Location>? additionalLocations, params object?[] messageArgs);
static member Create : Microsoft.CodeAnalysis.DiagnosticDescriptor * Microsoft.CodeAnalysis.Location * seq<Microsoft.CodeAnalysis.Location> * obj[] -> Microsoft.CodeAnalysis.Diagnostic
Public Shared Function Create (descriptor As DiagnosticDescriptor, location As Location, additionalLocations As IEnumerable(Of Location), ParamArray messageArgs As Object()) As Diagnostic
パラメーター
- descriptor
- DiagnosticDescriptor
DiagnosticDescriptor診断を記述する 。
- additionalLocations
- IEnumerable<Location>
診断に関連する追加の場所のオプション セット。 通常、これらはメッセージで参照されている他の項目の場所です。 null の場合、 AdditionalLocations は空のリストを返します。
- messageArgs
- Object[]
診断のメッセージの引数。
戻り値
Diagnostic のインスタンスです。
適用対象
Create(DiagnosticDescriptor, Location, ImmutableDictionary<String,String>, Object[])
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
Diagnostic インスタンスを作成します。
public:
static Microsoft::CodeAnalysis::Diagnostic ^ Create(Microsoft::CodeAnalysis::DiagnosticDescriptor ^ descriptor, Microsoft::CodeAnalysis::Location ^ location, System::Collections::Immutable::ImmutableDictionary<System::String ^, System::String ^> ^ properties, ... cli::array <System::Object ^> ^ messageArgs);
public static Microsoft.CodeAnalysis.Diagnostic Create (Microsoft.CodeAnalysis.DiagnosticDescriptor descriptor, Microsoft.CodeAnalysis.Location location, System.Collections.Immutable.ImmutableDictionary<string,string> properties, params object[] messageArgs);
public static Microsoft.CodeAnalysis.Diagnostic Create (Microsoft.CodeAnalysis.DiagnosticDescriptor descriptor, Microsoft.CodeAnalysis.Location? location, System.Collections.Immutable.ImmutableDictionary<string,string?>? properties, params object?[]? messageArgs);
public static Microsoft.CodeAnalysis.Diagnostic Create (Microsoft.CodeAnalysis.DiagnosticDescriptor descriptor, Microsoft.CodeAnalysis.Location location, System.Collections.Immutable.ImmutableDictionary<string,string>? properties, params object?[] messageArgs);
static member Create : Microsoft.CodeAnalysis.DiagnosticDescriptor * Microsoft.CodeAnalysis.Location * System.Collections.Immutable.ImmutableDictionary<string, string> * obj[] -> Microsoft.CodeAnalysis.Diagnostic
Public Shared Function Create (descriptor As DiagnosticDescriptor, location As Location, properties As ImmutableDictionary(Of String, String), ParamArray messageArgs As Object()) As Diagnostic
パラメーター
- descriptor
- DiagnosticDescriptor
DiagnosticDescriptor診断を記述する 。
- properties
- ImmutableDictionary<String,String>
診断を作成するアナライザーが、より詳細な情報をフィクサーに伝えることができる、名前と値のペアのオプションのセット。 null の場合、 Properties は を返します Empty。
- messageArgs
- Object[]
診断のメッセージの引数。
戻り値
Diagnostic のインスタンスです。
適用対象
Create(DiagnosticDescriptor, Location, IEnumerable<Location>, ImmutableDictionary<String,String>, Object[])
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
Diagnostic インスタンスを作成します。
public:
static Microsoft::CodeAnalysis::Diagnostic ^ Create(Microsoft::CodeAnalysis::DiagnosticDescriptor ^ descriptor, Microsoft::CodeAnalysis::Location ^ location, System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::Location ^> ^ additionalLocations, System::Collections::Immutable::ImmutableDictionary<System::String ^, System::String ^> ^ properties, ... cli::array <System::Object ^> ^ messageArgs);
public static Microsoft.CodeAnalysis.Diagnostic Create (Microsoft.CodeAnalysis.DiagnosticDescriptor descriptor, Microsoft.CodeAnalysis.Location location, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Location> additionalLocations, System.Collections.Immutable.ImmutableDictionary<string,string> properties, params object[] messageArgs);
public static Microsoft.CodeAnalysis.Diagnostic Create (Microsoft.CodeAnalysis.DiagnosticDescriptor descriptor, Microsoft.CodeAnalysis.Location? location, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Location>? additionalLocations, System.Collections.Immutable.ImmutableDictionary<string,string?>? properties, params object?[]? messageArgs);
public static Microsoft.CodeAnalysis.Diagnostic Create (Microsoft.CodeAnalysis.DiagnosticDescriptor descriptor, Microsoft.CodeAnalysis.Location location, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Location>? additionalLocations, System.Collections.Immutable.ImmutableDictionary<string,string>? properties, params object?[] messageArgs);
static member Create : Microsoft.CodeAnalysis.DiagnosticDescriptor * Microsoft.CodeAnalysis.Location * seq<Microsoft.CodeAnalysis.Location> * System.Collections.Immutable.ImmutableDictionary<string, string> * obj[] -> Microsoft.CodeAnalysis.Diagnostic
Public Shared Function Create (descriptor As DiagnosticDescriptor, location As Location, additionalLocations As IEnumerable(Of Location), properties As ImmutableDictionary(Of String, String), ParamArray messageArgs As Object()) As Diagnostic
パラメーター
- descriptor
- DiagnosticDescriptor
DiagnosticDescriptor診断を記述する 。
- additionalLocations
- IEnumerable<Location>
診断に関連する追加の場所のオプション セット。 通常、これらはメッセージで参照されている他の項目の場所です。 null の場合、 AdditionalLocations は空のリストを返します。
- properties
- ImmutableDictionary<String,String>
診断を作成するアナライザーが、より詳細な情報をフィクサーに伝えることができる、名前と値のペアのオプションのセット。 null の場合、 Properties は を返します Empty。
- messageArgs
- Object[]
診断のメッセージの引数。
戻り値
Diagnostic のインスタンスです。
適用対象
Create(DiagnosticDescriptor, Location, DiagnosticSeverity, IEnumerable<Location>, ImmutableDictionary<String,String>, Object[])
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
Diagnostic インスタンスを作成します。
public:
static Microsoft::CodeAnalysis::Diagnostic ^ Create(Microsoft::CodeAnalysis::DiagnosticDescriptor ^ descriptor, Microsoft::CodeAnalysis::Location ^ location, Microsoft::CodeAnalysis::DiagnosticSeverity effectiveSeverity, System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::Location ^> ^ additionalLocations, System::Collections::Immutable::ImmutableDictionary<System::String ^, System::String ^> ^ properties, ... cli::array <System::Object ^> ^ messageArgs);
public static Microsoft.CodeAnalysis.Diagnostic Create (Microsoft.CodeAnalysis.DiagnosticDescriptor descriptor, Microsoft.CodeAnalysis.Location location, Microsoft.CodeAnalysis.DiagnosticSeverity effectiveSeverity, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Location> additionalLocations, System.Collections.Immutable.ImmutableDictionary<string,string> properties, params object[] messageArgs);
public static Microsoft.CodeAnalysis.Diagnostic Create (Microsoft.CodeAnalysis.DiagnosticDescriptor descriptor, Microsoft.CodeAnalysis.Location? location, Microsoft.CodeAnalysis.DiagnosticSeverity effectiveSeverity, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Location>? additionalLocations, System.Collections.Immutable.ImmutableDictionary<string,string?>? properties, params object?[]? messageArgs);
public static Microsoft.CodeAnalysis.Diagnostic Create (Microsoft.CodeAnalysis.DiagnosticDescriptor descriptor, Microsoft.CodeAnalysis.Location location, Microsoft.CodeAnalysis.DiagnosticSeverity effectiveSeverity, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Location>? additionalLocations, System.Collections.Immutable.ImmutableDictionary<string,string>? properties, params object?[] messageArgs);
static member Create : Microsoft.CodeAnalysis.DiagnosticDescriptor * Microsoft.CodeAnalysis.Location * Microsoft.CodeAnalysis.DiagnosticSeverity * seq<Microsoft.CodeAnalysis.Location> * System.Collections.Immutable.ImmutableDictionary<string, string> * obj[] -> Microsoft.CodeAnalysis.Diagnostic
Public Shared Function Create (descriptor As DiagnosticDescriptor, location As Location, effectiveSeverity As DiagnosticSeverity, additionalLocations As IEnumerable(Of Location), properties As ImmutableDictionary(Of String, String), ParamArray messageArgs As Object()) As Diagnostic
パラメーター
- descriptor
- DiagnosticDescriptor
DiagnosticDescriptor診断を記述する 。
- effectiveSeverity
- DiagnosticSeverity
診断の有効な重大度。
- additionalLocations
- IEnumerable<Location>
診断に関連する追加の場所のオプション セット。 通常、これらはメッセージで参照されている他の項目の場所です。 null の場合、 AdditionalLocations は空のリストを返します。
- properties
- ImmutableDictionary<String,String>
診断を作成するアナライザーが、より詳細な情報をフィクサーに伝えることができる、名前と値のペアのオプションのセット。 null の場合、 Properties は を返します Empty。
- messageArgs
- Object[]
診断のメッセージの引数。
戻り値
Diagnostic のインスタンスです。
適用対象
Create(String, String, LocalizableString, DiagnosticSeverity, DiagnosticSeverity, Boolean, Int32, LocalizableString, LocalizableString, String, Location, IEnumerable<Location>, IEnumerable<String>, ImmutableDictionary<String,String>)
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
ローカライズ可能な Diagnostic インスタンスを作成します。
public static Microsoft.CodeAnalysis.Diagnostic Create (string id, string category, Microsoft.CodeAnalysis.LocalizableString message, Microsoft.CodeAnalysis.DiagnosticSeverity severity, Microsoft.CodeAnalysis.DiagnosticSeverity defaultSeverity, bool isEnabledByDefault, int warningLevel, Microsoft.CodeAnalysis.LocalizableString title = default, Microsoft.CodeAnalysis.LocalizableString description = default, string helpLink = default, Microsoft.CodeAnalysis.Location location = default, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Location> additionalLocations = default, System.Collections.Generic.IEnumerable<string> customTags = default, System.Collections.Immutable.ImmutableDictionary<string,string> properties = default);
public static Microsoft.CodeAnalysis.Diagnostic Create (string id, string category, Microsoft.CodeAnalysis.LocalizableString message, Microsoft.CodeAnalysis.DiagnosticSeverity severity, Microsoft.CodeAnalysis.DiagnosticSeverity defaultSeverity, bool isEnabledByDefault, int warningLevel, Microsoft.CodeAnalysis.LocalizableString? title = default, Microsoft.CodeAnalysis.LocalizableString? description = default, string? helpLink = default, Microsoft.CodeAnalysis.Location? location = default, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Location>? additionalLocations = default, System.Collections.Generic.IEnumerable<string>? customTags = default, System.Collections.Immutable.ImmutableDictionary<string,string?>? properties = default);
public static Microsoft.CodeAnalysis.Diagnostic Create (string id, string category, Microsoft.CodeAnalysis.LocalizableString message, Microsoft.CodeAnalysis.DiagnosticSeverity severity, Microsoft.CodeAnalysis.DiagnosticSeverity defaultSeverity, bool isEnabledByDefault, int warningLevel, Microsoft.CodeAnalysis.LocalizableString? title = default, Microsoft.CodeAnalysis.LocalizableString? description = default, string? helpLink = default, Microsoft.CodeAnalysis.Location? location = default, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Location>? additionalLocations = default, System.Collections.Generic.IEnumerable<string>? customTags = default, System.Collections.Immutable.ImmutableDictionary<string,string>? properties = default);
static member Create : string * string * Microsoft.CodeAnalysis.LocalizableString * Microsoft.CodeAnalysis.DiagnosticSeverity * Microsoft.CodeAnalysis.DiagnosticSeverity * bool * int * Microsoft.CodeAnalysis.LocalizableString * Microsoft.CodeAnalysis.LocalizableString * string * Microsoft.CodeAnalysis.Location * seq<Microsoft.CodeAnalysis.Location> * seq<string> * System.Collections.Immutable.ImmutableDictionary<string, string> -> Microsoft.CodeAnalysis.Diagnostic
Public Shared Function Create (id As String, category As String, message As LocalizableString, severity As DiagnosticSeverity, defaultSeverity As DiagnosticSeverity, isEnabledByDefault As Boolean, warningLevel As Integer, Optional title As LocalizableString = Nothing, Optional description As LocalizableString = Nothing, Optional helpLink As String = Nothing, Optional location As Location = Nothing, Optional additionalLocations As IEnumerable(Of Location) = Nothing, Optional customTags As IEnumerable(Of String) = Nothing, Optional properties As ImmutableDictionary(Of String, String) = Nothing) As Diagnostic
パラメーター
- id
- String
診断の識別子。 コンパイラによって生成された診断の場合、これは "CS1001" などのプレフィックスを持つ数値コードになります。
- category
- String
診断のカテゴリ。 コンパイラによって生成された診断の場合、カテゴリは "コンパイラ" になります。
- message
- LocalizableString
診断メッセージ テキスト。
- severity
- DiagnosticSeverity
診断の有効な重大度。
- defaultSeverity
- DiagnosticSeverity
診断の既定の重大度。
- isEnabledByDefault
- Boolean
診断が既定で有効になっている場合は True
- title
- LocalizableString
診断を記述する省略可能な短いローカライズ可能なタイトル。
- description
- LocalizableString
診断のローカライズ可能な説明 (省略可能)。
- helpLink
- String
診断に関する詳細情報を提供するオプションのハイパーリンク。
- additionalLocations
- IEnumerable<Location>
診断に関連する追加の場所のオプション セット。 通常、これらはメッセージで参照されている他の項目の場所です。 null の場合、 AdditionalLocations は空のリストを返します。
- customTags
- IEnumerable<String>
診断用のカスタム タグのオプション セット。 既知のタグについては、以下を参照してください WellKnownDiagnosticTags 。 null の場合、 Microsoft.CodeAnalysis.Diagnostic.CustomTags は空のリストを返します。
- properties
- ImmutableDictionary<String,String>
診断を作成するアナライザーが、より詳細な情報をフィクサーに伝えることができる、名前と値のペアのオプションのセット。 null の場合、 Properties は を返します Empty。
戻り値
Diagnostic のインスタンスです。
適用対象
Create(String, String, LocalizableString, DiagnosticSeverity, DiagnosticSeverity, Boolean, Int32, Boolean, LocalizableString, LocalizableString, String, Location, IEnumerable<Location>, IEnumerable<String>, ImmutableDictionary<String,String>)
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
- Source:
- Diagnostic.cs
ローカライズ可能な Diagnostic インスタンスを作成します。
public static Microsoft.CodeAnalysis.Diagnostic Create (string id, string category, Microsoft.CodeAnalysis.LocalizableString message, Microsoft.CodeAnalysis.DiagnosticSeverity severity, Microsoft.CodeAnalysis.DiagnosticSeverity defaultSeverity, bool isEnabledByDefault, int warningLevel, bool isSuppressed, Microsoft.CodeAnalysis.LocalizableString title = default, Microsoft.CodeAnalysis.LocalizableString description = default, string helpLink = default, Microsoft.CodeAnalysis.Location location = default, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Location> additionalLocations = default, System.Collections.Generic.IEnumerable<string> customTags = default, System.Collections.Immutable.ImmutableDictionary<string,string> properties = default);
public static Microsoft.CodeAnalysis.Diagnostic Create (string id, string category, Microsoft.CodeAnalysis.LocalizableString message, Microsoft.CodeAnalysis.DiagnosticSeverity severity, Microsoft.CodeAnalysis.DiagnosticSeverity defaultSeverity, bool isEnabledByDefault, int warningLevel, bool isSuppressed, Microsoft.CodeAnalysis.LocalizableString? title = default, Microsoft.CodeAnalysis.LocalizableString? description = default, string? helpLink = default, Microsoft.CodeAnalysis.Location? location = default, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Location>? additionalLocations = default, System.Collections.Generic.IEnumerable<string>? customTags = default, System.Collections.Immutable.ImmutableDictionary<string,string?>? properties = default);
public static Microsoft.CodeAnalysis.Diagnostic Create (string id, string category, Microsoft.CodeAnalysis.LocalizableString message, Microsoft.CodeAnalysis.DiagnosticSeverity severity, Microsoft.CodeAnalysis.DiagnosticSeverity defaultSeverity, bool isEnabledByDefault, int warningLevel, bool isSuppressed, Microsoft.CodeAnalysis.LocalizableString? title = default, Microsoft.CodeAnalysis.LocalizableString? description = default, string? helpLink = default, Microsoft.CodeAnalysis.Location? location = default, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Location>? additionalLocations = default, System.Collections.Generic.IEnumerable<string>? customTags = default, System.Collections.Immutable.ImmutableDictionary<string,string>? properties = default);
static member Create : string * string * Microsoft.CodeAnalysis.LocalizableString * Microsoft.CodeAnalysis.DiagnosticSeverity * Microsoft.CodeAnalysis.DiagnosticSeverity * bool * int * bool * Microsoft.CodeAnalysis.LocalizableString * Microsoft.CodeAnalysis.LocalizableString * string * Microsoft.CodeAnalysis.Location * seq<Microsoft.CodeAnalysis.Location> * seq<string> * System.Collections.Immutable.ImmutableDictionary<string, string> -> Microsoft.CodeAnalysis.Diagnostic
Public Shared Function Create (id As String, category As String, message As LocalizableString, severity As DiagnosticSeverity, defaultSeverity As DiagnosticSeverity, isEnabledByDefault As Boolean, warningLevel As Integer, isSuppressed As Boolean, Optional title As LocalizableString = Nothing, Optional description As LocalizableString = Nothing, Optional helpLink As String = Nothing, Optional location As Location = Nothing, Optional additionalLocations As IEnumerable(Of Location) = Nothing, Optional customTags As IEnumerable(Of String) = Nothing, Optional properties As ImmutableDictionary(Of String, String) = Nothing) As Diagnostic
パラメーター
- id
- String
診断の識別子。 コンパイラによって生成された診断の場合、これは "CS1001" などのプレフィックスを持つ数値コードになります。
- category
- String
診断のカテゴリ。 コンパイラによって生成された診断の場合、カテゴリは "コンパイラ" になります。
- message
- LocalizableString
診断メッセージ テキスト。
- severity
- DiagnosticSeverity
診断の有効な重大度。
- defaultSeverity
- DiagnosticSeverity
診断の既定の重大度。
- isEnabledByDefault
- Boolean
診断が既定で有効になっている場合は True
- isSuppressed
- Boolean
ソース抑制によって診断が抑制されるかどうかを示すフラグ。
- title
- LocalizableString
診断を記述する省略可能な短いローカライズ可能なタイトル。
- description
- LocalizableString
診断のローカライズ可能な説明 (省略可能)。
- helpLink
- String
診断に関する詳細情報を提供するオプションのハイパーリンク。
- additionalLocations
- IEnumerable<Location>
診断に関連する追加の場所のオプション セット。 通常、これらはメッセージで参照されている他の項目の場所です。 null の場合、 AdditionalLocations は空のリストを返します。
- customTags
- IEnumerable<String>
診断用のカスタム タグのオプション セット。 既知のタグについては、以下を参照してください WellKnownDiagnosticTags 。 null の場合、 Microsoft.CodeAnalysis.Diagnostic.CustomTags は空のリストを返します。
- properties
- ImmutableDictionary<String,String>
診断を作成するアナライザーが、より詳細な情報をフィクサーに伝えることができる、名前と値のペアのオプションのセット。 null の場合、 Properties は を返します Empty。
戻り値
Diagnostic のインスタンスです。
適用対象
.NET