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.

public ref class HtmlFormattableString : Microsoft::AspNetCore::Html::IHtmlContent
public class HtmlFormattableString : Microsoft.AspNetCore.Html.IHtmlContent
type HtmlFormattableString = class
    interface IHtmlContent
Public Class HtmlFormattableString
Implements 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