Share via


AjaxHelper Constructor (ViewContext, IViewDataContainer)

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

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

Syntax

'Declaration
Public Sub New ( _
    viewContext As ViewContext, _
    viewDataContainer As IViewDataContainer _
)
public AjaxHelper(
    ViewContext viewContext,
    IViewDataContainer viewDataContainer
)
public:
AjaxHelper(
    ViewContext^ viewContext, 
    IViewDataContainer^ viewDataContainer
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

One or both of the parameters is null reference (Nothing in Visual Basic).

See Also

Reference

AjaxHelper Class

AjaxHelper Overload

System.Web.Mvc Namespace