LinkGeneratorEndpointNameAddressExtensions.GetPathByName 메서드

정의

오버로드

GetPathByName(LinkGenerator, String, RouteValueDictionary, PathString, FragmentString, LinkOptions)

제공된 값에 기반한 절대 경로의 URI를 생성합니다.

GetPathByName(LinkGenerator, String, Object, PathString, FragmentString, LinkOptions)

제공된 값에 기반한 절대 경로의 URI를 생성합니다.

GetPathByName(LinkGenerator, HttpContext, String, RouteValueDictionary, Nullable<PathString>, FragmentString, LinkOptions)

제공된 값에 기반한 절대 경로의 URI를 생성합니다.

GetPathByName(LinkGenerator, HttpContext, String, Object, Nullable<PathString>, FragmentString, LinkOptions)

제공된 값에 기반한 절대 경로의 URI를 생성합니다.

GetPathByName(LinkGenerator, String, RouteValueDictionary, PathString, FragmentString, LinkOptions)

제공된 값에 기반한 절대 경로의 URI를 생성합니다.

public static string? GetPathByName (this Microsoft.AspNetCore.Routing.LinkGenerator generator, string endpointName, Microsoft.AspNetCore.Routing.RouteValueDictionary? values = default, Microsoft.AspNetCore.Http.PathString pathBase = default, Microsoft.AspNetCore.Http.FragmentString fragment = default, Microsoft.AspNetCore.Routing.LinkOptions? options = default);
static member GetPathByName : Microsoft.AspNetCore.Routing.LinkGenerator * string * Microsoft.AspNetCore.Routing.RouteValueDictionary * Microsoft.AspNetCore.Http.PathString * Microsoft.AspNetCore.Http.FragmentString * Microsoft.AspNetCore.Routing.LinkOptions -> string
<Extension()>
Public Function GetPathByName (generator As LinkGenerator, endpointName As String, Optional values As RouteValueDictionary = Nothing, Optional pathBase As PathString = Nothing, Optional fragment As FragmentString = Nothing, Optional options As LinkOptions = Nothing) As String

매개 변수

endpointName
String

엔드포인트 이름입니다. 엔드포인트를 resolve 데 사용됩니다.

values
RouteValueDictionary

경로 값입니다. 경로 템플릿에서 매개 변수를 확장하는 데 사용됩니다. 선택 사항입니다.

pathBase
PathString

선택적 URI 경로 기준입니다. 결과 URI의 경로 앞에 추가됩니다.

fragment
FragmentString

선택적 URI 조각입니다. 결과 URI에 추가됩니다.

options
LinkOptions

선택적 LinkOptions입니다. 제공된 개체의 설정은 의 RouteOptions이름과 일치하는 설정을 재정의합니다.

반환

절대 경로가 있는 URI 또는 null입니다.

적용 대상

GetPathByName(LinkGenerator, String, Object, PathString, FragmentString, LinkOptions)

Source:
LinkGeneratorEndpointNameAddressExtensions.cs

제공된 값에 기반한 절대 경로의 URI를 생성합니다.

public static string GetPathByName (this Microsoft.AspNetCore.Routing.LinkGenerator generator, string endpointName, object values, Microsoft.AspNetCore.Http.PathString pathBase = default, Microsoft.AspNetCore.Http.FragmentString fragment = default, Microsoft.AspNetCore.Routing.LinkOptions options = default);
public static string? GetPathByName (this Microsoft.AspNetCore.Routing.LinkGenerator generator, string endpointName, object? values, Microsoft.AspNetCore.Http.PathString pathBase = default, Microsoft.AspNetCore.Http.FragmentString fragment = default, Microsoft.AspNetCore.Routing.LinkOptions? options = default);
static member GetPathByName : Microsoft.AspNetCore.Routing.LinkGenerator * string * obj * Microsoft.AspNetCore.Http.PathString * Microsoft.AspNetCore.Http.FragmentString * Microsoft.AspNetCore.Routing.LinkOptions -> string
<Extension()>
Public Function GetPathByName (generator As LinkGenerator, endpointName As String, values As Object, Optional pathBase As PathString = Nothing, Optional fragment As FragmentString = Nothing, Optional options As LinkOptions = Nothing) As String

매개 변수

endpointName
String

엔드포인트 이름입니다. 엔드포인트를 resolve 데 사용됩니다.

values
Object

경로 값입니다. 경로 템플릿에서 매개 변수를 확장하는 데 사용됩니다. 선택 사항입니다.

pathBase
PathString

선택적 URI 경로 기준입니다. 결과 URI의 경로 앞에 추가됩니다.

fragment
FragmentString

선택적 URI 조각입니다. 결과 URI에 추가됩니다.

options
LinkOptions

선택적 LinkOptions입니다. 제공된 개체의 설정은 의 RouteOptions이름과 일치하는 설정을 재정의합니다.

반환

절대 경로가 있는 URI 또는 null입니다.

적용 대상

GetPathByName(LinkGenerator, HttpContext, String, RouteValueDictionary, Nullable<PathString>, FragmentString, LinkOptions)

제공된 값에 기반한 절대 경로의 URI를 생성합니다.

public static string? GetPathByName (this Microsoft.AspNetCore.Routing.LinkGenerator generator, Microsoft.AspNetCore.Http.HttpContext httpContext, string endpointName, Microsoft.AspNetCore.Routing.RouteValueDictionary? values = default, Microsoft.AspNetCore.Http.PathString? pathBase = default, Microsoft.AspNetCore.Http.FragmentString fragment = default, Microsoft.AspNetCore.Routing.LinkOptions? options = default);
static member GetPathByName : Microsoft.AspNetCore.Routing.LinkGenerator * Microsoft.AspNetCore.Http.HttpContext * string * Microsoft.AspNetCore.Routing.RouteValueDictionary * Nullable<Microsoft.AspNetCore.Http.PathString> * Microsoft.AspNetCore.Http.FragmentString * Microsoft.AspNetCore.Routing.LinkOptions -> string
<Extension()>
Public Function GetPathByName (generator As LinkGenerator, httpContext As HttpContext, endpointName As String, Optional values As RouteValueDictionary = Nothing, Optional pathBase As Nullable(Of PathString) = Nothing, Optional fragment As FragmentString = Nothing, Optional options As LinkOptions = Nothing) As String

매개 변수

httpContext
HttpContext

HttpContext 현재 요청과 연결된 입니다.

endpointName
String

엔드포인트 이름입니다. 엔드포인트를 resolve 데 사용됩니다.

values
RouteValueDictionary

경로 값입니다. 경로 템플릿에서 매개 변수를 확장하는 데 사용됩니다. 선택 사항입니다.

pathBase
Nullable<PathString>

선택적 URI 경로 기준입니다. 결과 URI의 경로 앞에 추가됩니다. 제공되지 않으면 값 PathBase 이 사용됩니다.

fragment
FragmentString

선택적 URI 조각입니다. 결과 URI에 추가됩니다.

options
LinkOptions

선택적 LinkOptions입니다. 제공된 개체의 설정은 의 RouteOptions이름과 일치하는 설정을 재정의합니다.

반환

절대 경로가 있는 URI 또는 null입니다.

적용 대상

GetPathByName(LinkGenerator, HttpContext, String, Object, Nullable<PathString>, FragmentString, LinkOptions)

Source:
LinkGeneratorEndpointNameAddressExtensions.cs

제공된 값에 기반한 절대 경로의 URI를 생성합니다.

public static string GetPathByName (this Microsoft.AspNetCore.Routing.LinkGenerator generator, Microsoft.AspNetCore.Http.HttpContext httpContext, string endpointName, object values, Microsoft.AspNetCore.Http.PathString? pathBase = default, Microsoft.AspNetCore.Http.FragmentString fragment = default, Microsoft.AspNetCore.Routing.LinkOptions options = default);
public static string? GetPathByName (this Microsoft.AspNetCore.Routing.LinkGenerator generator, Microsoft.AspNetCore.Http.HttpContext httpContext, string endpointName, object? values, Microsoft.AspNetCore.Http.PathString? pathBase = default, Microsoft.AspNetCore.Http.FragmentString fragment = default, Microsoft.AspNetCore.Routing.LinkOptions? options = default);
static member GetPathByName : Microsoft.AspNetCore.Routing.LinkGenerator * Microsoft.AspNetCore.Http.HttpContext * string * obj * Nullable<Microsoft.AspNetCore.Http.PathString> * Microsoft.AspNetCore.Http.FragmentString * Microsoft.AspNetCore.Routing.LinkOptions -> string
<Extension()>
Public Function GetPathByName (generator As LinkGenerator, httpContext As HttpContext, endpointName As String, values As Object, Optional pathBase As Nullable(Of PathString) = Nothing, Optional fragment As FragmentString = Nothing, Optional options As LinkOptions = Nothing) As String

매개 변수

httpContext
HttpContext

HttpContext 현재 요청과 연결된 입니다.

endpointName
String

엔드포인트 이름입니다. 엔드포인트를 resolve 데 사용됩니다.

values
Object

경로 값입니다. 경로 템플릿에서 매개 변수를 확장하는 데 사용됩니다. 선택 사항입니다.

pathBase
Nullable<PathString>

선택적 URI 경로 기준입니다. 결과 URI의 경로 앞에 추가됩니다. 제공되지 않으면 값 PathBase 이 사용됩니다.

fragment
FragmentString

선택적 URI 조각입니다. 결과 URI에 추가됩니다.

options
LinkOptions

선택적 LinkOptions입니다. 제공된 개체의 설정은 의 RouteOptions이름과 일치하는 설정을 재정의합니다.

반환

절대 경로가 있는 URI 또는 null입니다.

적용 대상