다음을 통해 공유


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 페이지에서 쓰기 scope 시작하고 필요에 따라 해당 scope 내의 페이지를 재정의하는 데 사용되는 대리자입니다HtmlEncoder.

endTagHelperWritingScope
Func<TagHelperContent>

Razor 페이지에서 쓰기 scope 종료하는 데 사용되는 대리자입니다.

적용 대상