StringHtmlContent Class

Definition

String content which gets encoded when written.

public ref class StringHtmlContent : Microsoft::AspNetCore::Html::IHtmlContent
public class StringHtmlContent : Microsoft.AspNetCore.Html.IHtmlContent
type StringHtmlContent = class
    interface IHtmlContent
Public Class StringHtmlContent
Implements IHtmlContent
Inheritance
StringHtmlContent
Implements

Constructors

StringHtmlContent(String)

Creates a new instance of StringHtmlContent

Methods

WriteTo(TextWriter, HtmlEncoder)

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

Applies to