MvcForm(ViewContext, HtmlEncoder) 构造函数

定义

初始化 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.MvcForm
Public Sub New (viewContext As ViewContext, htmlEncoder As HtmlEncoder)

参数

viewContext
ViewContext

ViewContext

htmlEncoder
HtmlEncoder

HtmlEncoder

适用于