Bagikan melalui


DefaultHtmlGenerator.GenerateFormCore Metode

Definisi

<Buat elemen formulir>.

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

Parameter

viewContext
ViewContext

Instans ViewContext untuk cakupan saat ini.

action
String

URL tempat data formulir harus dikirimkan.

method
String

Metode HTTP untuk memproses formulir, baik GET atau POST.

htmlAttributes
Object

yang Object berisi atribut HTML untuk elemen . Atau, instans yang IDictionary<TKey,TValue> berisi atribut HTML.

Mengembalikan

Instans TagBuilder untuk <elemen /form> .

Berlaku untuk