다음을 통해 공유


TagHelperExecutionContext 클래스

정의

의 실행 수명에 대한 ITagHelper정보를 저장하는 데 사용되는 클래스입니다.

public ref class TagHelperExecutionContext
public class TagHelperExecutionContext
type TagHelperExecutionContext = class
Public Class TagHelperExecutionContext
상속
TagHelperExecutionContext

생성자

TagHelperExecutionContext(String, TagMode, IDictionary<Object,Object>, String, Func<Task>, Action<HtmlEncoder>, Func<TagHelperContent>)

TagHelperExecutionContext을 인스턴스화합니다.

속성

ChildContentRetrieved

가 호출되었는지를 Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext.GetChildContentAsync(System.Boolean,System.Text.Encodings.Web.HtmlEncoder) 나타냅니다.

Context

ITagHelper컨텍스트입니다.

Items

다른 ITagHelper와 통신하는 데 사용되는 항목의 컬렉션을 가져옵니다.

Output

ITagHelper의 출력입니다.

TagHelpers

ITagHelper실행해야 하는 입니다.

메서드

Add(ITagHelper)

지정된 tagHelper를 추적합니다.

AddHtmlAttribute(String, Object, HtmlAttributeValueStyle)

HTML 특성을 추적합니다.

AddHtmlAttribute(TagHelperAttribute)

HTML 특성을 추적합니다.

AddTagHelperAttribute(String, Object, HtmlAttributeValueStyle)

바인딩된 ITagHelper 특성을 추적합니다.

AddTagHelperAttribute(TagHelperAttribute)

바인딩된 ITagHelper 특성을 추적합니다.

Reinitialize(String, TagMode, IDictionary<Object,Object>, String, Func<Task>)

TagHelperExecutionContext 지우고 제공된 값으로 상태를 업데이트합니다.

SetOutputContentAsync()

scope 페이지의 HtmlEncoder 를 사용하여 자식을 비동기적으로 실행하고 를 렌더링된 결과로 설정합니다OutputContent.

적용 대상