DefaultHtmlGenerator.GenerateFormCore Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Wygeneruj <element formularza> .
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
Wystąpienie ViewContext bieżącego zakresu.
- action
- String
Adres URL, w którym mają zostać przesłane dane formularza.
- method
- String
Metoda HTTP do przetwarzania formularza — GET lub POST.
- htmlAttributes
- Object
Element Object zawierający atrybuty HTML elementu. Alternatywnie IDictionary<TKey,TValue> wystąpienie zawierające atrybuty HTML.
Zwraca
Wystąpienie TagBuilder elementu </form> .