TagHelperScopeManager.Begin(String, TagMode, String, Func<Task>) Metoda

Definice

public:
 Microsoft::AspNetCore::Razor::Runtime::TagHelpers::TagHelperExecutionContext ^ Begin(System::String ^ tagName, Microsoft::AspNetCore::Razor::TagHelpers::TagMode tagMode, System::String ^ uniqueId, Func<System::Threading::Tasks::Task ^> ^ executeChildContentAsync);
public Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext Begin (string tagName, Microsoft.AspNetCore.Razor.TagHelpers.TagMode tagMode, string uniqueId, Func<System.Threading.Tasks.Task> executeChildContentAsync);
member this.Begin : string * Microsoft.AspNetCore.Razor.TagHelpers.TagMode * string * Func<System.Threading.Tasks.Task> -> Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext
Public Function Begin (tagName As String, tagMode As TagMode, uniqueId As String, executeChildContentAsync As Func(Of Task)) As TagHelperExecutionContext

Parametry

tagName
String

Název značky HTML, ke kterému je obor přidružený.

tagMode
TagMode

Syntaxe HTML elementu ve zdroji Razor.

uniqueId
String

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

executeChildContentAsync
Func<Task>

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

Návraty

TagHelperExecutionContext

A TagHelperExecutionContext , který se má použít.

Platí pro