HtmlString Třída

Definice

Implementace IHtmlContent , která zabalí kódOVANÝ StringKÓD HTML .

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
Dědičnost
HtmlString
Implementuje

Konstruktory

HtmlString(String)

Vytvoří nový objekt HtmlString.

Pole

Empty

Příklad HtmlString pro Empty.

NewLine

Příklad HtmlString pro NewLine.

Vlastnosti

Value

Získá kódovanou hodnotu HTML.

Metody

ToString()

Returns a string that represents the current object.

WriteTo(TextWriter, HtmlEncoder)

Zapíše obsah kódováním encoder zadaným do zadaného writersouboru .

Platí pro