PageLinkGeneratorExtensions.GetPathByPage 메서드

정의

오버로드

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

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

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

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

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

Source:
PageLinkGeneratorExtensions.cs

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

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

매개 변수

page
String

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

handler
String

페이지 처리기 이름입니다. 엔드포인트를 resolve 데 사용됩니다. 선택 사항입니다.

values
Object

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

pathBase
PathString

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

fragment
FragmentString

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

options
LinkOptions

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

반환

절대 경로가 있는 URI이거나 null URI를 만들 수 없는 경우 입니다.

적용 대상

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

Source:
PageLinkGeneratorExtensions.cs

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

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

매개 변수

httpContext
HttpContext

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

page
String

페이지 이름입니다. 엔드포인트를 resolve 데 사용됩니다. 선택 사항입니다. 가 제공되면 null 현재 페이지 경로 값이 사용됩니다.

handler
String

페이지 처리기 이름입니다. 엔드포인트를 resolve 데 사용됩니다. 선택 사항입니다.

values
Object

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

pathBase
Nullable<PathString>

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

fragment
FragmentString

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

options
LinkOptions

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

반환

절대 경로가 있는 URI이거나 null URI를 만들 수 없는 경우 입니다.

적용 대상