DiagnosticFormatter.Format(Diagnostic, IFormatProvider) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
선택적 IFormatProvider을 Diagnostic 사용하여 메시지의 서식을 지정합니다.
public virtual string Format(Microsoft.CodeAnalysis.Diagnostic diagnostic, IFormatProvider formatter = default);
public virtual string Format(Microsoft.CodeAnalysis.Diagnostic diagnostic, IFormatProvider? formatter = default);
abstract member Format : Microsoft.CodeAnalysis.Diagnostic * IFormatProvider -> string
override this.Format : Microsoft.CodeAnalysis.Diagnostic * IFormatProvider -> string
Public Overridable Function Format (diagnostic As Diagnostic, Optional formatter As IFormatProvider = Nothing) As String
매개 변수
- diagnostic
- Diagnostic
진단입니다.
- formatter
- IFormatProvider
포맷터; 또는 null로 기본 포맷터를 사용합니다.
반환
서식이 지정된 메시지입니다.