IHtmlHelper.ActionLink 메서드

정의

지정된 작업에 대한 URL 경로를 포함하는 앵커(<a>) 요소를 반환합니다.

public:
 Microsoft::AspNetCore::Html::IHtmlContent ^ ActionLink(System::String ^ linkText, System::String ^ actionName, System::String ^ controllerName, System::String ^ protocol, System::String ^ hostname, System::String ^ fragment, System::Object ^ routeValues, System::Object ^ htmlAttributes);
public Microsoft.AspNetCore.Html.IHtmlContent ActionLink (string linkText, string actionName, string controllerName, string protocol, string hostname, string fragment, object routeValues, object htmlAttributes);
abstract member ActionLink : string * string * string * string * string * string * obj * obj -> Microsoft.AspNetCore.Html.IHtmlContent
Public Function ActionLink (linkText As String, actionName As String, controllerName As String, protocol As String, hostname As String, fragment As String, routeValues As Object, htmlAttributes As Object) As IHtmlContent

매개 변수

linkText
String

앵커 요소의 내부 텍스트입니다. null이 아니어야 합니다.

actionName
String

작업 이름입니다.

controllerName
String

컨트롤러의 이름입니다.

protocol
String

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

hostname
String

URL의 호스트 이름입니다.

fragment
String

URL 조각 이름(앵커 이름)입니다.

routeValues
Object

Object 경로에 대한 매개 변수를 포함하는 입니다. 매개 변수는 의 속성을 검사하여 리플렉션을 통해 검색됩니다 Object. 일반적으로 이 Object 니셜라이저 구문을 사용하여 Object 만들어집니다. 또는 경로 매개 변수를 IDictionary<TKey,TValue> 포함하는 instance.

htmlAttributes
Object

Object 요소에 대한 HTML 특성이 들어 있는 입니다. IDictionary<TKey,TValue> 또는 HTML 특성을 포함하는 instance.

반환

앵커 요소를 포함하는 새 IHtmlContent 입니다.

적용 대상