DiagnosticFormatter.Format(Diagnostic, IFormatProvider) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Formats the Diagnostic message using the optional IFormatProvider.
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
Parameters
- diagnostic
- Diagnostic
The diagnostic.
- formatter
- IFormatProvider
The formatter; or null to use the default formatter.
Returns
The formatted message.
Applies to
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.