AjaxHelper 建構函式

定義

多載

AjaxHelper(ViewContext, IViewDataContainer)

使用指定的檢視內容和檢視資料容器, AjaxHelper 初始化 類別的新實例。

AjaxHelper(ViewContext, IViewDataContainer, RouteCollection)

使用指定的檢視內容、檢視資料容器和路由集合,初始化 類別的新實例 AjaxHelper

AjaxHelper(ViewContext, IViewDataContainer)

使用指定的檢視內容和檢視資料容器, AjaxHelper 初始化 類別的新實例。

public AjaxHelper (System.Web.Mvc.ViewContext viewContext, System.Web.Mvc.IViewDataContainer viewDataContainer);
new System.Web.Mvc.AjaxHelper : System.Web.Mvc.ViewContext * System.Web.Mvc.IViewDataContainer -> System.Web.Mvc.AjaxHelper
Public Sub New (viewContext As ViewContext, viewDataContainer As IViewDataContainer)

參數

viewContext
ViewContext

檢視內容。

viewDataContainer
IViewDataContainer

檢視資料容器。

例外狀況

其中一個或兩個參數都是 Null。

適用於

AjaxHelper(ViewContext, IViewDataContainer, RouteCollection)

使用指定的檢視內容、檢視資料容器和路由集合,初始化 類別的新實例 AjaxHelper

public AjaxHelper (System.Web.Mvc.ViewContext viewContext, System.Web.Mvc.IViewDataContainer viewDataContainer, System.Web.Routing.RouteCollection routeCollection);
new System.Web.Mvc.AjaxHelper : System.Web.Mvc.ViewContext * System.Web.Mvc.IViewDataContainer * System.Web.Routing.RouteCollection -> System.Web.Mvc.AjaxHelper
Public Sub New (viewContext As ViewContext, viewDataContainer As IViewDataContainer, routeCollection As RouteCollection)

參數

viewContext
ViewContext

檢視內容。

viewDataContainer
IViewDataContainer

檢視資料容器。

routeCollection
RouteCollection

URL 路徑集合。

例外狀況

一或多個參數為 Null。

適用於