UrlHelperExtensions.RouteUrl 메서드

정의

오버로드

RouteUrl(IUrlHelper, String, Object, String, String)

및 이름을 사용하도록 host 지정된 를 포함하는 지정된 경로 및 경로 values에 대한 절대 경로 routeName 가 있는 URL을 생성합니다protocol. 및 Host 이 아닌 경우 Protocol 절대 URL을null 생성합니다. 중요한 보안 정보는 설명 섹션을 참조하세요.

RouteUrl(IUrlHelper, Object)

지정된 경로 values에 대한 절대 경로가 있는 URL을 생성합니다.

RouteUrl(IUrlHelper, String)

지정된 에 대한 절대 경로가 있는 URL을 routeName생성합니다.

RouteUrl(IUrlHelper, String, Object)

지정된 및 경로 에 대한 절대 경로가 있는 URL을 routeName 생성합니다 values.

RouteUrl(IUrlHelper, String, Object, String)

사용할 지정된 를 포함하는 지정된 경로 및 경로 values에 대한 절대 경로 routeName 가 있는 URL을 protocol 생성합니다. 중요한 보안 정보는 설명 섹션을 참조하세요.

RouteUrl(IUrlHelper, String, Object, String, String, String)

지정된 경로 및 경로 에 대한 절대 경로가 있는 URL을 생성합니다. 이 경로 routeName 에는 사용할 지정된, host 이름 및 fragment이 포함됩니다protocol.valuesHost 이 아닌 경우 Protocol 절대 URL을null 생성합니다. 중요한 보안 정보는 설명 섹션을 참조하세요.

RouteUrl(IUrlHelper, String, Object, String, String)

Source:
UrlHelperExtensions.cs
Source:
UrlHelperExtensions.cs

및 이름을 사용하도록 host 지정된 를 포함하는 지정된 경로 및 경로 values에 대한 절대 경로 routeName 가 있는 URL을 생성합니다protocol. 및 Host 이 아닌 경우 Protocol 절대 URL을null 생성합니다. 중요한 보안 정보는 설명 섹션을 참조하세요.

public:
[System::Runtime::CompilerServices::Extension]
 static System::String ^ RouteUrl(Microsoft::AspNetCore::Mvc::IUrlHelper ^ helper, System::String ^ routeName, System::Object ^ values, System::String ^ protocol, System::String ^ host);
public static string RouteUrl (this Microsoft.AspNetCore.Mvc.IUrlHelper helper, string routeName, object values, string protocol, string host);
public static string? RouteUrl (this Microsoft.AspNetCore.Mvc.IUrlHelper helper, string? routeName, object? values, string? protocol, string? host);
static member RouteUrl : Microsoft.AspNetCore.Mvc.IUrlHelper * string * obj * string * string -> string
<Extension()>
Public Function RouteUrl (helper As IUrlHelper, routeName As String, values As Object, protocol As String, host As String) As String

매개 변수

routeName
String

URL을 생성하는 데 사용되는 경로의 이름입니다.

values
Object

경로 값을 포함하는 개체입니다.

protocol
String

URL의 프로토콜입니다(예: "http" 또는 "https").

host
String

URL의 호스트 이름입니다.

반환

생성된 URL입니다.

설명

host 은 신뢰할 수 있는 값이어야 합니다. 헤더의 유효성을 검사하지 않는 한 현재 요청의 값을 사용하면 신뢰할 수 없는 입력이 결과 URI에 Host 영향을 줄 수 있습니다. 배포 환경에서 헤더의 유효성을 올바르게 검사하는 방법에 대한 지침은 Host 배포 설명서를 참조하세요.

적용 대상

RouteUrl(IUrlHelper, Object)

Source:
UrlHelperExtensions.cs
Source:
UrlHelperExtensions.cs

지정된 경로 values에 대한 절대 경로가 있는 URL을 생성합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static System::String ^ RouteUrl(Microsoft::AspNetCore::Mvc::IUrlHelper ^ helper, System::Object ^ values);
public static string RouteUrl (this Microsoft.AspNetCore.Mvc.IUrlHelper helper, object values);
public static string? RouteUrl (this Microsoft.AspNetCore.Mvc.IUrlHelper helper, object? values);
static member RouteUrl : Microsoft.AspNetCore.Mvc.IUrlHelper * obj -> string
<Extension()>
Public Function RouteUrl (helper As IUrlHelper, values As Object) As String

매개 변수

values
Object

경로 값을 포함하는 개체입니다.

반환

생성된 URL입니다.

적용 대상

RouteUrl(IUrlHelper, String)

Source:
UrlHelperExtensions.cs
Source:
UrlHelperExtensions.cs

지정된 에 대한 절대 경로가 있는 URL을 routeName생성합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static System::String ^ RouteUrl(Microsoft::AspNetCore::Mvc::IUrlHelper ^ helper, System::String ^ routeName);
public static string RouteUrl (this Microsoft.AspNetCore.Mvc.IUrlHelper helper, string routeName);
public static string? RouteUrl (this Microsoft.AspNetCore.Mvc.IUrlHelper helper, string? routeName);
static member RouteUrl : Microsoft.AspNetCore.Mvc.IUrlHelper * string -> string
<Extension()>
Public Function RouteUrl (helper As IUrlHelper, routeName As String) As String

매개 변수

routeName
String

URL을 생성하는 데 사용되는 경로의 이름입니다.

반환

생성된 URL입니다.

적용 대상

RouteUrl(IUrlHelper, String, Object)

Source:
UrlHelperExtensions.cs
Source:
UrlHelperExtensions.cs

지정된 및 경로 에 대한 절대 경로가 있는 URL을 routeName 생성합니다 values.

public:
[System::Runtime::CompilerServices::Extension]
 static System::String ^ RouteUrl(Microsoft::AspNetCore::Mvc::IUrlHelper ^ helper, System::String ^ routeName, System::Object ^ values);
public static string RouteUrl (this Microsoft.AspNetCore.Mvc.IUrlHelper helper, string routeName, object values);
public static string? RouteUrl (this Microsoft.AspNetCore.Mvc.IUrlHelper helper, string? routeName, object? values);
static member RouteUrl : Microsoft.AspNetCore.Mvc.IUrlHelper * string * obj -> string
<Extension()>
Public Function RouteUrl (helper As IUrlHelper, routeName As String, values As Object) As String

매개 변수

routeName
String

URL을 생성하는 데 사용되는 경로의 이름입니다.

values
Object

경로 값을 포함하는 개체입니다.

반환

생성된 URL입니다.

적용 대상

RouteUrl(IUrlHelper, String, Object, String)

Source:
UrlHelperExtensions.cs
Source:
UrlHelperExtensions.cs

사용할 지정된 를 포함하는 지정된 경로 및 경로 values에 대한 절대 경로 routeName 가 있는 URL을 protocol 생성합니다. 중요한 보안 정보는 설명 섹션을 참조하세요.

public:
[System::Runtime::CompilerServices::Extension]
 static System::String ^ RouteUrl(Microsoft::AspNetCore::Mvc::IUrlHelper ^ helper, System::String ^ routeName, System::Object ^ values, System::String ^ protocol);
public static string RouteUrl (this Microsoft.AspNetCore.Mvc.IUrlHelper helper, string routeName, object values, string protocol);
public static string? RouteUrl (this Microsoft.AspNetCore.Mvc.IUrlHelper helper, string? routeName, object? values, string? protocol);
static member RouteUrl : Microsoft.AspNetCore.Mvc.IUrlHelper * string * obj * string -> string
<Extension()>
Public Function RouteUrl (helper As IUrlHelper, routeName As String, values As Object, protocol As String) As String

매개 변수

routeName
String

URL을 생성하는 데 사용되는 경로의 이름입니다.

values
Object

경로 값을 포함하는 개체입니다.

protocol
String

URL의 프로토콜입니다(예: "http" 또는 "https").

반환

생성된 URL입니다.

설명

이 메서드는 값을 Host 사용하여 생성된 URI의 호스트 섹션을 채웁니다. 헤더의 유효성을 검사하지 않는 한 현재 요청의 값을 사용하면 신뢰할 수 없는 입력이 결과 URI에 Host 영향을 줄 수 있습니다. 배포 환경에서 헤더의 유효성을 올바르게 검사하는 방법에 대한 지침은 Host 배포 설명서를 참조하세요.

적용 대상

RouteUrl(IUrlHelper, String, Object, String, String, String)

Source:
UrlHelperExtensions.cs
Source:
UrlHelperExtensions.cs

지정된 경로 및 경로 에 대한 절대 경로가 있는 URL을 생성합니다. 이 경로 routeName 에는 사용할 지정된, host 이름 및 fragment이 포함됩니다protocol.valuesHost 이 아닌 경우 Protocol 절대 URL을null 생성합니다. 중요한 보안 정보는 설명 섹션을 참조하세요.

public:
[System::Runtime::CompilerServices::Extension]
 static System::String ^ RouteUrl(Microsoft::AspNetCore::Mvc::IUrlHelper ^ helper, System::String ^ routeName, System::Object ^ values, System::String ^ protocol, System::String ^ host, System::String ^ fragment);
public static string RouteUrl (this Microsoft.AspNetCore.Mvc.IUrlHelper helper, string routeName, object values, string protocol, string host, string fragment);
public static string? RouteUrl (this Microsoft.AspNetCore.Mvc.IUrlHelper helper, string? routeName, object? values, string? protocol, string? host, string? fragment);
static member RouteUrl : Microsoft.AspNetCore.Mvc.IUrlHelper * string * obj * string * string * string -> string
<Extension()>
Public Function RouteUrl (helper As IUrlHelper, routeName As String, values As Object, protocol As String, host As String, fragment As String) As String

매개 변수

routeName
String

URL을 생성하는 데 사용되는 경로의 이름입니다.

values
Object

경로 값을 포함하는 개체입니다.

protocol
String

URL의 프로토콜입니다(예: "http" 또는 "https").

host
String

URL의 호스트 이름입니다.

fragment
String

URL의 조각입니다.

반환

생성된 URL입니다.

설명

host 은 신뢰할 수 있는 값이어야 합니다. 헤더의 유효성을 검사하지 않는 한 현재 요청의 값을 사용하면 신뢰할 수 없는 입력이 결과 URI에 Host 영향을 줄 수 있습니다. 배포 환경에서 헤더의 유효성을 올바르게 검사하는 방법에 대한 지침은 Host 배포 설명서를 참조하세요.

적용 대상