次の方法で共有


TagHelperExecutionContext コンストラクター

定義

新しい TagHelperExecutionContext をインスタンス化します。

public:
 TagHelperExecutionContext(System::String ^ tagName, Microsoft::AspNetCore::Razor::TagHelpers::TagMode tagMode, System::Collections::Generic::IDictionary<System::Object ^, System::Object ^> ^ items, System::String ^ uniqueId, Func<System::Threading::Tasks::Task ^> ^ executeChildContentAsync, Action<System::Text::Encodings::Web::HtmlEncoder ^> ^ startTagHelperWritingScope, Func<Microsoft::AspNetCore::Razor::TagHelpers::TagHelperContent ^> ^ endTagHelperWritingScope);
public TagHelperExecutionContext (string tagName, Microsoft.AspNetCore.Razor.TagHelpers.TagMode tagMode, System.Collections.Generic.IDictionary<object,object> items, string uniqueId, Func<System.Threading.Tasks.Task> executeChildContentAsync, Action<System.Text.Encodings.Web.HtmlEncoder> startTagHelperWritingScope, Func<Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent> endTagHelperWritingScope);
new Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext : string * Microsoft.AspNetCore.Razor.TagHelpers.TagMode * System.Collections.Generic.IDictionary<obj, obj> * string * Func<System.Threading.Tasks.Task> * Action<System.Text.Encodings.Web.HtmlEncoder> * Func<Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent> -> Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext
Public Sub New (tagName As String, tagMode As TagMode, items As IDictionary(Of Object, Object), uniqueId As String, executeChildContentAsync As Func(Of Task), startTagHelperWritingScope As Action(Of HtmlEncoder), endTagHelperWritingScope As Func(Of TagHelperContent))

パラメーター

tagName
String

Razor ソースの HTML タグ名。

tagMode
TagMode

Razor ソース内の 要素の HTML 構文。

items
IDictionary<Object,Object>

ITagHelperの と通信するために使用される項目のコレクション。

uniqueId
String

このコンテキストの対象となる HTML 要素に固有の識別子。

executeChildContentAsync
Func<Task>

子コンテンツを非同期的に実行するために使用されるデリゲート。

startTagHelperWritingScope
Action<HtmlEncoder>

Razor ページで書き込みスコープを開始し、必要に応じてそのスコープ内のページを HtmlEncoder オーバーライドするために使用されるデリゲート。

endTagHelperWritingScope
Func<TagHelperContent>

Razor ページで書き込みスコープを終了するために使用されるデリゲート。

適用対象