Udostępnij za pośrednictwem


HtmlHelper<TModel> Constructor (ViewContext, IViewDataContainer)

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

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

Syntax

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

Parameters

See Also

Reference

HtmlHelper<TModel> Class

HtmlHelper<TModel> Overload

System.Web.Mvc Namespace