DefaultHtmlGenerator.GenerateFormCore Método

Definição

Gerar um elemento de <formulário> .

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

Uma ViewContext instância para o escopo atual.

action
String

A URL em que os dados de formulário devem ser enviados.

method
String

O método HTTP para o processamento do formulário, GET ou POST.

htmlAttributes
Object

Um Object que contém os atributos HTML para o elemento . Como alternativa, uma IDictionary<TKey,TValue> instância que contém os atributos HTML.

Retornos

Uma TagBuilder instância para o <elemento /form> .

Aplica-se a