共用方式為


DefaultHtmlGenerator.GenerateFormCore 方法

定義

<產生表單 > 專案。

protected:
 virtual Microsoft::AspNetCore::Mvc::Rendering::TagBuilder ^ GenerateFormCore(Microsoft::AspNetCore::Mvc::Rendering::ViewContext ^ viewContext, System::String ^ action, System::String ^ method, System::Object ^ htmlAttributes);
protected virtual Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateFormCore (Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, string action, string method, object htmlAttributes);
abstract member GenerateFormCore : Microsoft.AspNetCore.Mvc.Rendering.ViewContext * string * string * obj -> Microsoft.AspNetCore.Mvc.Rendering.TagBuilder
override this.GenerateFormCore : Microsoft.AspNetCore.Mvc.Rendering.ViewContext * string * string * obj -> Microsoft.AspNetCore.Mvc.Rendering.TagBuilder
Protected Overridable Function GenerateFormCore (viewContext As ViewContext, action As String, method As String, htmlAttributes As Object) As TagBuilder

參數

viewContext
ViewContext

ViewContext目前範圍的實例。

action
String

應該提交表單資料的 URL。

method
String

用於處理此表單的 HTTP 方法。可以是 GET 或 POST。

htmlAttributes
Object

Object,其中包含 專案的 HTML 屬性。 或者, IDictionary<TKey,TValue> 包含 HTML 屬性的實例。

傳回

TagBuilder/form > 專案的實例 < 。

適用於