Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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)

public HtmlHelper(
	ViewContext viewContext,
	IViewDataContainer viewDataContainer,
	RouteCollection routeCollection
)

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 route collection.

ExceptionCondition
ArgumentNullException

One or more parameters is null.

Show:
© 2015 Microsoft