Compartir a través de


DefaultHtmlGenerator.GenerateFormCore Método

Definición

Generar un <elemento de formulario> .

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

Parámetros

viewContext
ViewContext

Una ViewContext instancia del ámbito actual.

action
String

Dirección URL donde se deben enviar los datos del formulario.

method
String

Método HTTP, ya sea GET o POST, que se va a usar para procesar el formulario.

htmlAttributes
Object

que Object contiene los atributos HTML del elemento . Como alternativa, una IDictionary<TKey,TValue> instancia de que contiene los atributos HTML.

Devoluciones

Una TagBuilder instancia del <elemento /form> .

Se aplica a