TagHelperExecutionContext Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Instantiates a new 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))
Parameters
- tagName
- String
The HTML tag name in the Razor source.
- tagMode
- TagMode
HTML syntax of the element in the Razor source.
- items
- IDictionary<Object,Object>
The collection of items used to communicate with other ITagHelpers
- uniqueId
- String
An identifier unique to the HTML element this context is for.
- startTagHelperWritingScope
- Action<HtmlEncoder>
A delegate used to start a writing scope in a Razor page and optionally override the page's HtmlEncoder within that scope.
- endTagHelperWritingScope
- Func<TagHelperContent>
A delegate used to end a writing scope in a Razor page.