TagHelperExecutionContext Konstruktor

Definice

Vytvoří instanci nového 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))

Parametry

tagName
String

Název značky HTML ve zdroji Razor.

tagMode
TagMode

Syntaxe HTML elementu ve zdroji Razor

items
IDictionary<Object,Object>

Kolekce položek používaných ke komunikaci s jinými ITagHelperpoložkami

uniqueId
String

Identifikátor jedinečný pro element HTML, pro který je tento kontext určen.

executeChildContentAsync
Func<Task>

Delegát použitý k asynchronnímu spuštění podřízeného obsahu.

startTagHelperWritingScope
Action<HtmlEncoder>

Delegát, který se používá k zahájení psaní oboru na stránce Razor Page a volitelně přepíše stránku HtmlEncoder v daném oboru.

endTagHelperWritingScope
Func<TagHelperContent>

Delegát, který se používá k ukončení oboru zápisu na stránce Razor Page.

Platí pro