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
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.