HtmlHelper Constructor (ViewContext, IViewDataContainer)

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

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

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

Parameters

viewContext
Type: System.Web.Mvc.ViewContext

The view context.

viewDataContainer
Type: System.Web.Mvc.IViewDataContainer

The view data container.

ExceptionCondition
ArgumentNullException

The viewContext or the viewDataContainer parameter is a null reference (Nothing in Visual Basic).

Show: