Share via


TagHelperOutput コンストラクター

定義

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

public:
 TagHelperOutput(System::String ^ tagName, Microsoft::AspNetCore::Razor::TagHelpers::TagHelperAttributeList ^ attributes, Func<bool, System::Text::Encodings::Web::HtmlEncoder ^, System::Threading::Tasks::Task<Microsoft::AspNetCore::Razor::TagHelpers::TagHelperContent ^> ^> ^ getChildContentAsync);
public TagHelperOutput (string tagName, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttributeList attributes, Func<bool,System.Text.Encodings.Web.HtmlEncoder,System.Threading.Tasks.Task<Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent>> getChildContentAsync);
new Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput : string * Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttributeList * Func<bool, System.Text.Encodings.Web.HtmlEncoder, System.Threading.Tasks.Task<Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent>> -> Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput
Public Sub New (tagName As String, attributes As TagHelperAttributeList, getChildContentAsync As Func(Of Boolean, HtmlEncoder, Task(Of TagHelperContent)))

パラメーター

tagName
String

HTML 要素のタグ名。

attributes
TagHelperAttributeList

HTML 属性。

getChildContentAsync
Func<Boolean,HtmlEncoder,Task<TagHelperContent>>

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

適用対象