TagHelperOutput クラス

定義

の出力を表すために使用される ITagHelperクラス。

public ref class TagHelperOutput : Microsoft::AspNetCore::Html::IHtmlContentContainer
public class TagHelperOutput : Microsoft.AspNetCore.Html.IHtmlContentContainer
type TagHelperOutput = class
    interface IHtmlContentContainer
    interface IHtmlContent
type TagHelperOutput = class
    interface IHtmlContent
    interface IHtmlContentContainer
Public Class TagHelperOutput
Implements IHtmlContentContainer
継承
TagHelperOutput
実装

コンストラクター

TagHelperOutput(String, TagHelperAttributeList, Func<Boolean,HtmlEncoder,Task<TagHelperContent>>)

TagHelperOutput の新しいインスタンスを生成します。

プロパティ

Attributes

HTML 要素の属性。

Content

HTML 要素のメインコンテンツを取得または設定します。

IsContentModified

true が設定されている場合 Content は 。 false それ以外の場合は 。

PostContent

HTML 要素の投稿コンテンツ。

PostElement

HTML 要素に続くコンテンツ。

PreContent

HTML 要素の事前コンテンツ。

PreElement

HTML 要素の前にあるコンテンツ。

TagMode

生成された HTML 内の 要素の構文。

TagName

HTML 要素のタグ名。

メソッド

GetChildContentAsync()

子を非同期的に実行し、レンダリングされたコンテンツを返します。

GetChildContentAsync(Boolean)

子を非同期的に実行し、レンダリングされたコンテンツを返します。

GetChildContentAsync(Boolean, HtmlEncoder)

スコープ内で 指定 encoder された を使用して子を非同期的に実行し、レンダリングされたコンテンツを返します。

GetChildContentAsync(HtmlEncoder)

スコープ内で 指定 encoder された を使用して子を非同期的に実行し、レンダリングされたコンテンツを返します。

Reinitialize(String, TagMode)

TagHelperOutput クリアし、指定された値でその状態を更新します。

SuppressOutput()

何も生成しない変更 TagHelperOutput

WriteTo(TextWriter, HtmlEncoder)

指定した を使用して、指定した encoder にエンコードしてコンテンツを writer書き込みます。

明示的なインターフェイスの実装

IHtmlContentContainer.CopyTo(IHtmlContentBuilder)

の出力を表すために使用される ITagHelperクラス。

IHtmlContentContainer.MoveTo(IHtmlContentBuilder)

の出力を表すために使用される ITagHelperクラス。

拡張メソッド

AddClass(TagHelperOutput, String, HtmlEncoder)

指定された を classValueAttributestagHelperOutput追加します。

CopyHtmlAttribute(TagHelperOutput, String, TagHelperContext)

ユーザー指定の属性contextを から の AllAttributesAttributestagHelperOutputコピーします。

MergeAttributes(TagHelperOutput, TagBuilder)

指定tagBuilderAttributesした の を にマージしますtagHelperOutput

RemoveClass(TagHelperOutput, String, HtmlEncoder)

の から指定classValueされた をtagHelperOutputAttributes削除します。

RemoveRange(TagHelperOutput, IEnumerable<TagHelperAttribute>)

から指定attributestagHelperOutputAttributesされた を削除します。

適用対象