Afficher en anglais

Partage via


HtmlString Classe

Définition

Implémentation IHtmlContent qui encapsule un encodé StringHTML.

C#
public class HtmlString : Microsoft.AspNetCore.Html.IHtmlContent
Héritage
HtmlString
Implémente

Constructeurs

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 à

Produit Versions
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