UrlHelperExtensions.Action 메서드

정의

오버로드

Action(IUrlHelper)

작업 메서드에 대한 경로를 사용하여 URL을 생성합니다.

Action(IUrlHelper, String)

지정된 이름을 포함하는 작업 메서드에 대한 경로가 있는 URL을 action 생성합니다.

Action(IUrlHelper, String, Object)

지정된 이름 및 경로 values를 포함하는 작업 메서드에 대한 경로가 있는 URL을 action 생성합니다.

Action(IUrlHelper, String, String)

지정된 및 controller 이름을 포함하는 작업 메서드의 경로를 사용하여 URL을 action 생성합니다.

Action(IUrlHelper, String, String, Object)

지정된 이름, controller 이름 및 경로 values를 포함하는 작업 메서드에 대한 경로가 있는 URL을 action 생성합니다.

Action(IUrlHelper, String, String, Object, String)

지정된 action 이름, 이름, controller 경로 및 를 포함하는 작업 메서드에 대한 경로 valuesprotocol 가 있는 URL을 생성합니다. 중요한 보안 정보는 설명 섹션을 참조하세요.

Action(IUrlHelper, String, String, Object, String, String)

지정된 action 이름, 이름, controller 경로 , 및 이름을 포함하는 작업 메서드에 대한 경로 valuesprotocolhost 있는 URL을 생성합니다. 및 host 이 아닌null 경우 절대 URL을 protocol 생성합니다. 중요한 보안 정보는 설명 섹션을 참조하세요.

Action(IUrlHelper, String, String, Object, String, String, String)

지정된 action 이름, 이름, 경로 protocolvalues, 를 사용하여host, controller 이름 및 를 포함하는 작업 메서드에 대한 경로가 fragment있는 URL을 생성합니다. 및 host 이 아닌null 경우 절대 URL을 protocol 생성합니다. 중요한 보안 정보는 설명 섹션을 참조하세요.

Action(IUrlHelper)

작업 메서드에 대한 경로를 사용하여 URL을 생성합니다.

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

매개 변수

반환

생성된 URL입니다.

적용 대상

Action(IUrlHelper, String)

지정된 이름을 포함하는 작업 메서드에 대한 경로가 있는 URL을 action 생성합니다.

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

매개 변수

action
String

작업 메서드의 이름입니다.

반환

생성된 URL입니다.

적용 대상

Action(IUrlHelper, String, Object)

지정된 이름 및 경로 values를 포함하는 작업 메서드에 대한 경로가 있는 URL을 action 생성합니다.

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

매개 변수

action
String

작업 메서드의 이름입니다.

values
Object

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

반환

생성된 URL입니다.

적용 대상

Action(IUrlHelper, String, String)

지정된 및 controller 이름을 포함하는 작업 메서드의 경로를 사용하여 URL을 action 생성합니다.

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

매개 변수

action
String

작업 메서드의 이름입니다.

controller
String

컨트롤러의 이름입니다.

반환

생성된 URL입니다.

적용 대상

Action(IUrlHelper, String, String, Object)

지정된 이름, controller 이름 및 경로 values를 포함하는 작업 메서드에 대한 경로가 있는 URL을 action 생성합니다.

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

매개 변수

action
String

작업 메서드의 이름입니다.

controller
String

컨트롤러의 이름입니다.

values
Object

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

반환

생성된 URL입니다.

적용 대상

Action(IUrlHelper, String, String, Object, String)

지정된 action 이름, 이름, controller 경로 및 를 포함하는 작업 메서드에 대한 경로 valuesprotocol 가 있는 URL을 생성합니다. 중요한 보안 정보는 설명 섹션을 참조하세요.

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

매개 변수

action
String

작업 메서드의 이름입니다.

controller
String

컨트롤러의 이름입니다.

values
Object

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

protocol
String

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

반환

생성된 URL입니다.

설명

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

적용 대상

Action(IUrlHelper, String, String, Object, String, String)

지정된 action 이름, 이름, controller 경로 , 및 이름을 포함하는 작업 메서드에 대한 경로 valuesprotocolhost 있는 URL을 생성합니다. 및 host 이 아닌null 경우 절대 URL을 protocol 생성합니다. 중요한 보안 정보는 설명 섹션을 참조하세요.

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

매개 변수

action
String

작업 메서드의 이름입니다.

controller
String

컨트롤러의 이름입니다.

values
Object

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

protocol
String

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

host
String

URL의 호스트 이름입니다.

반환

생성된 URL입니다.

설명

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

적용 대상

Action(IUrlHelper, String, String, Object, String, String, String)

지정된 action 이름, 이름, 경로 protocolvalues, 를 사용하여host, controller 이름 및 를 포함하는 작업 메서드에 대한 경로가 fragment있는 URL을 생성합니다. 및 host 이 아닌null 경우 절대 URL을 protocol 생성합니다. 중요한 보안 정보는 설명 섹션을 참조하세요.

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

매개 변수

action
String

작업 메서드의 이름입니다.

controller
String

컨트롤러의 이름입니다.

values
Object

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

protocol
String

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

host
String

URL의 호스트 이름입니다.

fragment
String

URL의 조각입니다.

반환

생성된 URL입니다.

설명

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

적용 대상