MvcForm Class¶
An HTML form element in an MVC view.
- Namespace
Microsoft.AspNetCore.Mvc.Rendering
- Assemblies
- Microsoft.AspNetCore.Mvc.ViewFeatures
Constructors¶
-
MvcForm
(Microsoft.AspNetCore.Mvc.Rendering.ViewContext, System.Text.Encodings.Web.HtmlEncoder)¶ Initializes a new instance of
Microsoft.AspNetCore.Mvc.Rendering.MvcForm
.Arguments: - viewContext (Microsoft.AspNetCore.Mvc.Rendering.ViewContext) – The
Microsoft.AspNetCore.Mvc.Rendering.ViewContext
. - htmlEncoder (System.Text.Encodings.Web.HtmlEncoder) – The
System.Text.Encodings.Web.HtmlEncoder
.
public MvcForm(ViewContext viewContext, HtmlEncoder htmlEncoder)
- viewContext (Microsoft.AspNetCore.Mvc.Rendering.ViewContext) – The
-