MvcForm(ViewContext, HtmlEncoder) Constructor 
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of MvcForm.
public:
 MvcForm(Microsoft::AspNetCore::Mvc::Rendering::ViewContext ^ viewContext, System::Text::Encodings::Web::HtmlEncoder ^ htmlEncoder);public MvcForm(Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, System.Text.Encodings.Web.HtmlEncoder htmlEncoder);new Microsoft.AspNetCore.Mvc.Rendering.MvcForm : Microsoft.AspNetCore.Mvc.Rendering.ViewContext * System.Text.Encodings.Web.HtmlEncoder -> Microsoft.AspNetCore.Mvc.Rendering.MvcFormPublic Sub New (viewContext As ViewContext, htmlEncoder As HtmlEncoder)Parameters
- viewContext
- ViewContext
The ViewContext.
- htmlEncoder
- HtmlEncoder
The HtmlEncoder.