ChildActionExtensions.RenderAction 方法

定義

多載

RenderAction(HtmlHelper, String)

叫用指定的子系動作方法,並呈現內嵌於父檢視內的結果。

RenderAction(HtmlHelper, String, Object)

使用指定的參數叫用指定的子系動作方法,並呈現內嵌於父檢視內的結果。

RenderAction(HtmlHelper, String, String)

使用指定的控制器名稱叫用指定的子系動作方法,並呈現內嵌於父檢視內的結果。

RenderAction(HtmlHelper, String, RouteValueDictionary)

使用指定的參數叫用指定的子系動作方法,並呈現內嵌於父檢視內的結果。

RenderAction(HtmlHelper, String, String, Object)

使用指定的參數和控制器名稱叫用指定的子系動作方法,並呈現內嵌於父檢視內的結果。

RenderAction(HtmlHelper, String, String, RouteValueDictionary)

使用指定的參數和控制器名稱叫用指定的子系動作方法,並呈現內嵌於父檢視內的結果。

RenderAction(HtmlHelper, String)

叫用指定的子系動作方法,並呈現內嵌於父檢視內的結果。

public static void RenderAction (this System.Web.Mvc.HtmlHelper htmlHelper, string actionName);
static member RenderAction : System.Web.Mvc.HtmlHelper * string -> unit
<Extension()>
Public Sub RenderAction (htmlHelper As HtmlHelper, actionName As String)

參數

htmlHelper
HtmlHelper

此方法擴充的 HTML Helper 執行個體。

actionName
String

要叫用的子系動作方法名稱。

例外狀況

htmlHelper 參數為 null。

參數 actionName 為 Null 或空白。

找不到必要的虛擬路徑資料。

適用於

RenderAction(HtmlHelper, String, Object)

使用指定的參數叫用指定的子系動作方法,並呈現內嵌於父檢視內的結果。

public static void RenderAction (this System.Web.Mvc.HtmlHelper htmlHelper, string actionName, object routeValues);
static member RenderAction : System.Web.Mvc.HtmlHelper * string * obj -> unit
<Extension()>
Public Sub RenderAction (htmlHelper As HtmlHelper, actionName As String, routeValues As Object)

參數

htmlHelper
HtmlHelper

此方法擴充的 HTML Helper 執行個體。

actionName
String

要叫用的子系動作方法名稱。

routeValues
Object

包含路徑參數的物件。 您可以使用 routeValues 來提供系結至動作方法參數的參數。 參數 routeValues 會與原始路由值合併,並加以覆寫。

例外狀況

htmlHelper 參數為 null。

參數 actionName 為 Null 或空白。

找不到必要的虛擬路徑資料。

適用於

RenderAction(HtmlHelper, String, String)

使用指定的控制器名稱叫用指定的子系動作方法,並呈現內嵌於父檢視內的結果。

public static void RenderAction (this System.Web.Mvc.HtmlHelper htmlHelper, string actionName, string controllerName);
static member RenderAction : System.Web.Mvc.HtmlHelper * string * string -> unit
<Extension()>
Public Sub RenderAction (htmlHelper As HtmlHelper, actionName As String, controllerName As String)

參數

htmlHelper
HtmlHelper

此方法擴充的 HTML Helper 執行個體。

actionName
String

要叫用的子系動作方法名稱。

controllerName
String

包含動作方法的控制器名稱。

例外狀況

htmlHelper 參數為 null。

參數 actionName 為 Null 或空白。

找不到必要的虛擬路徑資料。

適用於

RenderAction(HtmlHelper, String, RouteValueDictionary)

使用指定的參數叫用指定的子系動作方法,並呈現內嵌於父檢視內的結果。

public static void RenderAction (this System.Web.Mvc.HtmlHelper htmlHelper, string actionName, System.Web.Routing.RouteValueDictionary routeValues);
static member RenderAction : System.Web.Mvc.HtmlHelper * string * System.Web.Routing.RouteValueDictionary -> unit
<Extension()>
Public Sub RenderAction (htmlHelper As HtmlHelper, actionName As String, routeValues As RouteValueDictionary)

參數

htmlHelper
HtmlHelper

此方法擴充的 HTML Helper 執行個體。

actionName
String

要叫用的子系動作方法名稱。

routeValues
RouteValueDictionary

字典,其中包含路由的參數。 您可以使用 routeValues 來提供系結至動作方法參數的參數。 參數 routeValues 會與原始路由值合併,並加以覆寫。

例外狀況

htmlHelper 參數為 null。

參數 actionName 為 Null 或空白。

找不到必要的虛擬路徑資料。

適用於

RenderAction(HtmlHelper, String, String, Object)

使用指定的參數和控制器名稱叫用指定的子系動作方法,並呈現內嵌於父檢視內的結果。

public static void RenderAction (this System.Web.Mvc.HtmlHelper htmlHelper, string actionName, string controllerName, object routeValues);
static member RenderAction : System.Web.Mvc.HtmlHelper * string * string * obj -> unit
<Extension()>
Public Sub RenderAction (htmlHelper As HtmlHelper, actionName As String, controllerName As String, routeValues As Object)

參數

htmlHelper
HtmlHelper

此方法擴充的 HTML Helper 執行個體。

actionName
String

要叫用的子系動作方法名稱。

controllerName
String

包含動作方法的控制器名稱。

routeValues
Object

包含路徑參數的物件。 您可以使用 routeValues 來提供系結至動作方法參數的參數。 參數 routeValues 會與原始路由值合併,並加以覆寫。

例外狀況

htmlHelper 參數為 null。

參數 actionName 為 Null 或空白。

找不到必要的虛擬路徑資料。

適用於

RenderAction(HtmlHelper, String, String, RouteValueDictionary)

使用指定的參數和控制器名稱叫用指定的子系動作方法,並呈現內嵌於父檢視內的結果。

public static void RenderAction (this System.Web.Mvc.HtmlHelper htmlHelper, string actionName, string controllerName, System.Web.Routing.RouteValueDictionary routeValues);
static member RenderAction : System.Web.Mvc.HtmlHelper * string * string * System.Web.Routing.RouteValueDictionary -> unit
<Extension()>
Public Sub RenderAction (htmlHelper As HtmlHelper, actionName As String, controllerName As String, routeValues As RouteValueDictionary)

參數

htmlHelper
HtmlHelper

此方法擴充的 HTML Helper 執行個體。

actionName
String

要叫用的子系動作方法名稱。

controllerName
String

包含動作方法的控制器名稱。

routeValues
RouteValueDictionary

字典,其中包含路由的參數。 您可以使用 routeValues 來提供系結至動作方法參數的參數。 參數 routeValues 會與原始路由值合併,並加以覆寫。

例外狀況

htmlHelper 參數為 null。

參數 actionName 為 Null 或空白。

找不到必要的虛擬路徑資料。

適用於