Op Englesch liesen

Deelen iwwer


HtmlFormattableString Class

Definition

An IHtmlContent implementation of composite string formatting (see https://msdn.microsoft.com/en-us/library/txafckwd(v=vs.110).aspx) which HTML encodes formatted arguments.

C#
public class HtmlFormattableString : Microsoft.AspNetCore.Html.IHtmlContent
Inheritance
HtmlFormattableString
Implements

Constructors

HtmlFormattableString(IFormatProvider, String, Object[])

Creates a new HtmlFormattableString with the given formatProvider, format and args.

HtmlFormattableString(String, Object[])

Creates a new HtmlFormattableString with the given format and args.

Methods

WriteTo(TextWriter, HtmlEncoder)

Writes the content by encoding it with the specified encoder to the specified writer.

Applies to

Produkt Versiounen
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0