UrlResolutionTagHelper 클래스

정의

ITagHelper URL 예상 값이 있는 특성을 포함하는 요소를 대상으로 하는 구현입니다.

public ref class UrlResolutionTagHelper : Microsoft::AspNetCore::Razor::TagHelpers::TagHelper
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("*", Attributes="[itemid^='~/']")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="[href^='~/']")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("applet", Attributes="[archive^='~/']")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("area", Attributes="[href^='~/']", TagStructure=Microsoft.AspNetCore.Razor.TagHelpers.TagStructure.WithoutEndTag)]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("audio", Attributes="[src^='~/']")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("base", Attributes="[href^='~/']", TagStructure=Microsoft.AspNetCore.Razor.TagHelpers.TagStructure.WithoutEndTag)]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("blockquote", Attributes="[cite^='~/']")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("button", Attributes="[formaction^='~/']")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("del", Attributes="[cite^='~/']")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("embed", Attributes="[src^='~/']", TagStructure=Microsoft.AspNetCore.Razor.TagHelpers.TagStructure.WithoutEndTag)]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="[action^='~/']")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("html", Attributes="[manifest^='~/']")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("iframe", Attributes="[src^='~/']")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("img", Attributes="[src^='~/']", TagStructure=Microsoft.AspNetCore.Razor.TagHelpers.TagStructure.WithoutEndTag)]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("img", Attributes="[srcset^='~/']", TagStructure=Microsoft.AspNetCore.Razor.TagHelpers.TagStructure.WithoutEndTag)]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("input", Attributes="[src^='~/']", TagStructure=Microsoft.AspNetCore.Razor.TagHelpers.TagStructure.WithoutEndTag)]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("input", Attributes="[formaction^='~/']", TagStructure=Microsoft.AspNetCore.Razor.TagHelpers.TagStructure.WithoutEndTag)]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("ins", Attributes="[cite^='~/']")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("link", Attributes="[href^='~/']", TagStructure=Microsoft.AspNetCore.Razor.TagHelpers.TagStructure.WithoutEndTag)]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("menuitem", Attributes="[icon^='~/']")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("object", Attributes="[archive^='~/']")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("object", Attributes="[data^='~/']")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("q", Attributes="[cite^='~/']")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("script", Attributes="[src^='~/']")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("source", Attributes="[src^='~/']", TagStructure=Microsoft.AspNetCore.Razor.TagHelpers.TagStructure.WithoutEndTag)]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("source", Attributes="[srcset^='~/']", TagStructure=Microsoft.AspNetCore.Razor.TagHelpers.TagStructure.WithoutEndTag)]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("track", Attributes="[src^='~/']", TagStructure=Microsoft.AspNetCore.Razor.TagHelpers.TagStructure.WithoutEndTag)]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("video", Attributes="[src^='~/']")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("video", Attributes="[poster^='~/']")]
public class UrlResolutionTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("*", Attributes="[itemid^='~/']")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="[href^='~/']")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("applet", Attributes="[archive^='~/']")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("area", Attributes="[href^='~/']", TagStructure=Microsoft.AspNetCore.Razor.TagHelpers.TagStructure.WithoutEndTag)>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("audio", Attributes="[src^='~/']")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("base", Attributes="[href^='~/']", TagStructure=Microsoft.AspNetCore.Razor.TagHelpers.TagStructure.WithoutEndTag)>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("blockquote", Attributes="[cite^='~/']")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("button", Attributes="[formaction^='~/']")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("del", Attributes="[cite^='~/']")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("embed", Attributes="[src^='~/']", TagStructure=Microsoft.AspNetCore.Razor.TagHelpers.TagStructure.WithoutEndTag)>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="[action^='~/']")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("html", Attributes="[manifest^='~/']")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("iframe", Attributes="[src^='~/']")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("img", Attributes="[src^='~/']", TagStructure=Microsoft.AspNetCore.Razor.TagHelpers.TagStructure.WithoutEndTag)>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("img", Attributes="[srcset^='~/']", TagStructure=Microsoft.AspNetCore.Razor.TagHelpers.TagStructure.WithoutEndTag)>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("input", Attributes="[src^='~/']", TagStructure=Microsoft.AspNetCore.Razor.TagHelpers.TagStructure.WithoutEndTag)>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("input", Attributes="[formaction^='~/']", TagStructure=Microsoft.AspNetCore.Razor.TagHelpers.TagStructure.WithoutEndTag)>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("ins", Attributes="[cite^='~/']")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("link", Attributes="[href^='~/']", TagStructure=Microsoft.AspNetCore.Razor.TagHelpers.TagStructure.WithoutEndTag)>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("menuitem", Attributes="[icon^='~/']")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("object", Attributes="[archive^='~/']")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("object", Attributes="[data^='~/']")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("q", Attributes="[cite^='~/']")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("script", Attributes="[src^='~/']")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("source", Attributes="[src^='~/']", TagStructure=Microsoft.AspNetCore.Razor.TagHelpers.TagStructure.WithoutEndTag)>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("source", Attributes="[srcset^='~/']", TagStructure=Microsoft.AspNetCore.Razor.TagHelpers.TagStructure.WithoutEndTag)>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("track", Attributes="[src^='~/']", TagStructure=Microsoft.AspNetCore.Razor.TagHelpers.TagStructure.WithoutEndTag)>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("video", Attributes="[src^='~/']")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("video", Attributes="[poster^='~/']")>]
type UrlResolutionTagHelper = class
    inherit TagHelper
Public Class UrlResolutionTagHelper
Inherits TagHelper
상속
UrlResolutionTagHelper
파생
특성

설명

다른 ITagHelper의 대상이 아닌 '~/'(애플리케이션의 'webroot' 설정을 기준으로)로 시작하는 URL을 확인합니다. 애플리케이션 상대 URL이 확인되도록 다른 ITagHelper의 앞에 를 실행합니다.

생성자

UrlResolutionTagHelper(IUrlHelperFactory, HtmlEncoder)

UrlResolutionTagHelper를 만듭니다.

속성

HtmlEncoder

HtmlEncoder

Order

s 집합 ITagHelper이 실행되면 해당 Init(TagHelperContext)의 가 지정된 Order에서 먼저 호출된 다음 ProcessAsync(TagHelperContext, TagHelperOutput)지정된 에서 Order해당 의 가 호출됩니다. 낮은 값이 먼저 실행됩니다.

UrlHelperFactory

IUrlHelperFactory

ViewContext

ViewContext

메서드

Init(TagHelperContext)

지정된 context를 사용하여 를 초기화합니다ITagHelper. 자식을 실행하기 Items 전에 추가가 추가되었는지 확인하려면 이 메서드 내에서 추가해야 합니다.

(다음에서 상속됨 TagHelper)
Process(TagHelperContext, TagHelperOutput)

지정된 contextoutput를 사용하여 를 동기적으로 실행합니다TagHelper.

ProcessAsync(TagHelperContext, TagHelperOutput)

지정된 contextoutput를 사용하여 를 비동기적으로 실행합니다TagHelper.

(다음에서 상속됨 TagHelper)
ProcessUrlAttribute(String, TagHelperOutput)

가 인 에 대해 output'~/'(애플리케이션의 'webroot' 설정에 상대적)로 AttributesNameattributeName시작하는 URL 값을 확인하고 업데이트합니다.

TryResolveUrl(String, IHtmlContent)

애플리케이션의 'webroot' 설정을 기준으로 지정된 url 값을 resolve 시도합니다.

TryResolveUrl(String, String)

애플리케이션의 'webroot' 설정을 기준으로 지정된 url 값을 resolve 시도합니다.

적용 대상