Share via


StringHtmlContent 類別

定義

寫入時所編碼的字串內容。

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
繼承
StringHtmlContent
實作

建構函式

StringHtmlContent(String)

建立 StringHtmlContent 的新執行個體

方法

WriteTo(TextWriter, HtmlEncoder)

使用指定的 來撰寫內容,方法是將它編碼為指定的 encoderwriter

適用於