HtmlHelper Constructor (ViewContext, IViewDataContainer, RouteCollection)
Visual Studio 2010
Initializes a new instance of the HtmlHelper class by using the specified view context, view data container, and route collection.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
'Declaration Public Sub New ( _ viewContext As ViewContext, _ viewDataContainer As IViewDataContainer, _ routeCollection As 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.
| Exception | Condition |
|---|---|
| ArgumentNullException | One or more parameters is Nothing. |
Community Additions
ADD
Show: