Partager via


HtmlHelper Constructor (ViewContext, IViewDataContainer, RouteCollection)

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

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

Syntax

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

Parameters

Exceptions

Exception Condition
ArgumentNullException

One or more parameters is null reference (Nothing in Visual Basic).

See Also

Reference

HtmlHelper Class

HtmlHelper Overload

System.Web.Mvc Namespace