HtmlHelper.GenerateLink メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
GenerateLink(RequestContext, RouteCollection, String, String, String, String, RouteValueDictionary, IDictionary<String,Object>) |
指定されたアクション メソッドにリンクする HTML アンカー要素 (a 要素) を生成します。 |
GenerateLink(RequestContext, RouteCollection, String, String, String, String, String, String, String, RouteValueDictionary, IDictionary<String,Object>) |
指定されたアクション メソッドにリンクする HTML アンカー要素 (a 要素) を生成します。ユーザーは、通信プロトコル、ホストの名前、および URL フラグメントを指定できます。 |
GenerateLink(RequestContext, RouteCollection, String, String, String, String, RouteValueDictionary, IDictionary<String,Object>)
指定されたアクション メソッドにリンクする HTML アンカー要素 (a 要素) を生成します。
public static string GenerateLink (System.Web.Routing.RequestContext requestContext, System.Web.Routing.RouteCollection routeCollection, string linkText, string routeName, string actionName, string controllerName, System.Web.Routing.RouteValueDictionary routeValues, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member GenerateLink : System.Web.Routing.RequestContext * System.Web.Routing.RouteCollection * string * string * string * string * System.Web.Routing.RouteValueDictionary * System.Collections.Generic.IDictionary<string, obj> -> string
Public Shared Function GenerateLink (requestContext As RequestContext, routeCollection As RouteCollection, linkText As String, routeName As String, actionName As String, controllerName As String, routeValues As RouteValueDictionary, htmlAttributes As IDictionary(Of String, Object)) As String
パラメーター
- requestContext
- RequestContext
HTTP 要求のコンテキスト。
- routeCollection
- RouteCollection
URL ルートのコレクション。
- linkText
- String
リンクに表示されるテキスト キャプション。
- routeName
- String
仮想パスを返すために使用されるルートの名前。
- actionName
- String
アクション メソッドの名前です。
- controllerName
- String
コントローラーの名前。
- routeValues
- RouteValueDictionary
ルートのパラメーターが含まれるオブジェクト。
- htmlAttributes
- IDictionary<String,Object>
この要素の HTML 属性を格納するオブジェクト。
戻り値
指定されたアクション メソッドにリンクする HTML 要素。
適用対象
GenerateLink(RequestContext, RouteCollection, String, String, String, String, String, String, String, RouteValueDictionary, IDictionary<String,Object>)
指定されたアクション メソッドにリンクする HTML アンカー要素 (a 要素) を生成します。ユーザーは、通信プロトコル、ホストの名前、および URL フラグメントを指定できます。
public static string GenerateLink (System.Web.Routing.RequestContext requestContext, System.Web.Routing.RouteCollection routeCollection, string linkText, string routeName, string actionName, string controllerName, string protocol, string hostName, string fragment, System.Web.Routing.RouteValueDictionary routeValues, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member GenerateLink : System.Web.Routing.RequestContext * System.Web.Routing.RouteCollection * string * string * string * string * string * string * string * System.Web.Routing.RouteValueDictionary * System.Collections.Generic.IDictionary<string, obj> -> string
Public Shared Function GenerateLink (requestContext As RequestContext, routeCollection As RouteCollection, linkText As String, routeName As String, actionName As String, controllerName As String, protocol As String, hostName As String, fragment As String, routeValues As RouteValueDictionary, htmlAttributes As IDictionary(Of String, Object)) As String
パラメーター
- requestContext
- RequestContext
HTTP 要求のコンテキスト。
- routeCollection
- RouteCollection
URL ルートのコレクション。
- linkText
- String
リンクに表示されるテキスト キャプション。
- routeName
- String
仮想パスを返すために使用されるルートの名前。
- actionName
- String
アクション メソッドの名前です。
- controllerName
- String
コントローラーの名前。
- protocol
- String
通信プロトコル (HTTP、HTTPS など)。 このパラメーターが null である場合、プロトコルの既定値は HTTP です。
- hostName
- String
ホストの名前。
- fragment
- String
フラグメント識別子。
- routeValues
- RouteValueDictionary
ルートのパラメーターが含まれるオブジェクト。
- htmlAttributes
- IDictionary<String,Object>
この要素の HTML 属性を格納するオブジェクト。
戻り値
指定されたアクション メソッドにリンクする HTML 要素。