다음을 통해 공유


Diagnostic.Create 메서드

정의

오버로드

Create(DiagnosticDescriptor, Location, Object[])

Diagnostic 인스턴스를 만듭니다.

Create(DiagnosticDescriptor, Location, IEnumerable<Location>, Object[])

Diagnostic 인스턴스를 만듭니다.

Create(DiagnosticDescriptor, Location, ImmutableDictionary<String,String>, Object[])

Diagnostic 인스턴스를 만듭니다.

Create(DiagnosticDescriptor, Location, IEnumerable<Location>, ImmutableDictionary<String,String>, Object[])

Diagnostic 인스턴스를 만듭니다.

Create(DiagnosticDescriptor, Location, DiagnosticSeverity, IEnumerable<Location>, ImmutableDictionary<String,String>, Object[])

Diagnostic 인스턴스를 만듭니다.

Create(String, String, LocalizableString, DiagnosticSeverity, DiagnosticSeverity, Boolean, Int32, LocalizableString, LocalizableString, String, Location, IEnumerable<Location>, IEnumerable<String>, ImmutableDictionary<String,String>)

Diagnostic 지역화할 수 있는 instance 만듭니다.

Create(String, String, LocalizableString, DiagnosticSeverity, DiagnosticSeverity, Boolean, Int32, Boolean, LocalizableString, LocalizableString, String, Location, IEnumerable<Location>, IEnumerable<String>, ImmutableDictionary<String,String>)

Diagnostic 지역화할 수 있는 instance 만듭니다.

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
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 진단을 설명하는 입니다.

location
Location

진단의 선택적 기본 위치입니다. null이면 는 Location 를 반환합니다 None.

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
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 진단을 설명하는 입니다.

location
Location

진단의 선택적 기본 위치입니다. null이면 는 Location 를 반환합니다 None.

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
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 진단을 설명하는 입니다.

location
Location

진단의 선택적 기본 위치입니다. null이면 는 Location 를 반환합니다 None.

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
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 진단을 설명하는 입니다.

location
Location

진단의 선택적 기본 위치입니다. null이면 는 Location 를 반환합니다 None.

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
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 진단을 설명하는 입니다.

location
Location

진단의 선택적 기본 위치입니다. null이면 는 Location 를 반환합니다 None.

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
Source:
Diagnostic.cs

Diagnostic 지역화할 수 있는 instance 만듭니다.

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입니다.

warningLevel
Int32

심각도가 이면 0보다 큰 경고 수준이고, 그렇지 않으면 0입니다 Warning.

title
LocalizableString

진단을 설명하는 선택적 짧은 지역화 가능한 제목입니다.

description
LocalizableString

진단에 대한 선택적 더 긴 지역화 가능한 설명입니다.

helpLink
String

진단에 대한 자세한 정보를 제공하는 선택적 하이퍼링크입니다.

location
Location

진단의 선택적 기본 위치입니다. null이면 는 Location 를 반환합니다 None.

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
Source:
Diagnostic.cs

Diagnostic 지역화할 수 있는 instance 만듭니다.

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입니다.

warningLevel
Int32

심각도가 이면 0보다 큰 경고 수준이고, 그렇지 않으면 0입니다 Warning.

isSuppressed
Boolean

원본 표시 안 함을 통해 진단을 표시하지 않는지 여부를 나타내는 플래그입니다.

title
LocalizableString

진단을 설명하는 선택적 짧은 지역화 가능한 제목입니다.

description
LocalizableString

진단에 대한 선택적 더 긴 지역화 가능한 설명입니다.

helpLink
String

진단에 대한 자세한 정보를 제공하는 선택적 하이퍼링크입니다.

location
Location

진단의 선택적 기본 위치입니다. null이면 는 Location 를 반환합니다 None.

additionalLocations
IEnumerable<Location>

진단과 관련된 추가 위치의 선택적 집합입니다. 일반적으로 이러한 위치는 메시지에서 참조되는 다른 항목의 위치입니다. null AdditionalLocations 이면 가 빈 목록을 반환합니다.

customTags
IEnumerable<String>

진단에 대한 사용자 지정 태그의 선택적 집합입니다. 잘 알려진 태그는 를 참조하세요 WellKnownDiagnosticTags . null Microsoft.CodeAnalysis.Diagnostic.CustomTags 이면 가 빈 목록을 반환합니다.

properties
ImmutableDictionary<String,String>

진단을 만드는 분석기가 수정자에게 보다 자세한 정보를 전달할 수 있는 선택적 이름-값 쌍 집합입니다. null이면 는 Properties 를 반환합니다 Empty.

반환

Diagnostic 인스턴스입니다.

적용 대상