HtmlString Classe

Définition

Implémentation IHtmlContent qui encapsule un encodé StringHTML.

public ref class HtmlString : Microsoft::AspNetCore::Html::IHtmlContent
public class HtmlString : Microsoft.AspNetCore.Html.IHtmlContent
type HtmlString = class
    interface IHtmlContent
Public Class HtmlString
Implements IHtmlContent
Héritage
HtmlString
Implémente

Constructeurs

HtmlString(String)

Crée un HtmlString.

Champs

Empty

Instance HtmlString pour Empty.

NewLine

Instance HtmlString pour NewLine.

Propriétés

Value

Obtient la valeur encodée html.

Méthodes

ToString()

Implémentation IHtmlContent qui encapsule un encodé StringHTML.

WriteTo(TextWriter, HtmlEncoder)

Écrit le contenu en l’encodant avec le spécifié encoder dans le spécifié writer.

S’applique à