AjaxHelper Constructor

 

Initializes a new instance of the AjaxHelper class.

Namespace:   System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

NameDescription
System_CAPS_pubmethodAjaxHelper(ViewContext, IViewDataContainer)

Initializes a new instance of the AjaxHelper class using the specified view context and view data container.

System_CAPS_pubmethodAjaxHelper(ViewContext, IViewDataContainer, RouteCollection)

Initializes a new instance of the AjaxHelper class by using the specified view context, view data container, and route collection.

Return to top

AjaxHelper Constructor (ViewContext, IViewDataContainer)

Initializes a new instance of the AjaxHelper class using the specified view context and view data container.

new : 
        viewContext:ViewContext *
        viewDataContainer:IViewDataContainer -> AjaxHelper

Parameters

viewContext
Type: System.Web.Mvc.ViewContext

The view context.

viewDataContainer
Type: System.Web.Mvc.IViewDataContainer

The view data container.

Exception Condition
ArgumentNullException

One or both of the parameters is null.

Return to top

AjaxHelper Constructor (ViewContext, IViewDataContainer, RouteCollection)

Initializes a new instance of the AjaxHelper class by using the specified view context, view data container, and route collection.

new : 
        viewContext:ViewContext *
        viewDataContainer:IViewDataContainer *
        routeCollection:RouteCollection -> AjaxHelper

Parameters

viewContext
Type: System.Web.Mvc.ViewContext

The view context.

viewDataContainer
Type: System.Web.Mvc.IViewDataContainer

The view data container.

routeCollection
Type: System.Web.Routing.RouteCollection

The URL route collection.

Exception Condition
ArgumentNullException

One or more of the parameters is null.

Return to top
Show: