HtmlHelper<TModel> HtmlHelper<TModel> Constructors

Definition

Overloads

HtmlHelper<TModel>(ViewContext, IViewDataContainer) HtmlHelper<TModel>(ViewContext, IViewDataContainer)

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

HtmlHelper<TModel>(ViewContext, IViewDataContainer, RouteCollection) HtmlHelper<TModel>(ViewContext, IViewDataContainer, RouteCollection)

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

HtmlHelper<TModel>(ViewContext, IViewDataContainer) HtmlHelper<TModel>(ViewContext, IViewDataContainer)

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

public HtmlHelper (System.Web.Mvc.ViewContext viewContext, System.Web.Mvc.IViewDataContainer viewDataContainer);
new System.Web.Mvc.HtmlHelper<'Model> : System.Web.Mvc.ViewContext * System.Web.Mvc.IViewDataContainer -> System.Web.Mvc.HtmlHelper<'Model>

Parameters

viewContext
ViewContext ViewContext

The view context.

viewDataContainer
IViewDataContainer IViewDataContainer

The view data container.

HtmlHelper<TModel>(ViewContext, IViewDataContainer, RouteCollection) HtmlHelper<TModel>(ViewContext, IViewDataContainer, RouteCollection)

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

public HtmlHelper (System.Web.Mvc.ViewContext viewContext, System.Web.Mvc.IViewDataContainer viewDataContainer, System.Web.Routing.RouteCollection routeCollection);
new System.Web.Mvc.HtmlHelper<'Model> : System.Web.Mvc.ViewContext * System.Web.Mvc.IViewDataContainer * System.Web.Routing.RouteCollection -> System.Web.Mvc.HtmlHelper<'Model>

Parameters

viewContext
ViewContext ViewContext

The view context.

viewDataContainer
IViewDataContainer IViewDataContainer

The view data container.

routeCollection
RouteCollection RouteCollection

The route collection.

Applies to