DefaultHtmlGenerator.GenerateFormCore Metoda

Definice

Vygenerujte <prvek formuláře> .

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

Parametry

viewContext
ViewContext

Instance ViewContext pro aktuální obor.

action
String

Adresa URL, kam se mají data formuláře odeslat.

method
String

Metoda HTTP pro zpracování formuláře, get nebo POST.

htmlAttributes
Object

Obsahuje Object atributy HTML elementu . Alternativně instance IDictionary<TKey,TValue> obsahující atributy HTML.

Návraty

Instance TagBuilder elementu </form> .

Platí pro