DefaultHtmlGenerator.GenerateRouteForm Metoda

Definicja

Wygeneruj <element formularza> . Trasa o nazwie routeName generuje wartość atrybutu <action formularza>.

public:
 virtual Microsoft::AspNetCore::Mvc::Rendering::TagBuilder ^ GenerateRouteForm(Microsoft::AspNetCore::Mvc::Rendering::ViewContext ^ viewContext, System::String ^ routeName, System::Object ^ routeValues, System::String ^ method, System::Object ^ htmlAttributes);
public Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateRouteForm (Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, string routeName, object routeValues, string method, object htmlAttributes);
abstract member GenerateRouteForm : Microsoft.AspNetCore.Mvc.Rendering.ViewContext * string * obj * string * obj -> Microsoft.AspNetCore.Mvc.Rendering.TagBuilder
override this.GenerateRouteForm : Microsoft.AspNetCore.Mvc.Rendering.ViewContext * string * obj * string * obj -> Microsoft.AspNetCore.Mvc.Rendering.TagBuilder
Public Function GenerateRouteForm (viewContext As ViewContext, routeName As String, routeValues As Object, method As String, htmlAttributes As Object) As TagBuilder

Parametry

viewContext
ViewContext

Wystąpienie ViewContext bieżącego zakresu.

routeName
String

Nazwa trasy.

routeValues
Object

Element Object zawierający parametry trasy. Parametry są pobierane przez odbicie, sprawdzając właściwości elementu Object. Jest to Object zwykle tworzone przy użyciu Object składni inicjatora. Alternatywnie IDictionary<TKey,TValue> wystąpienie zawierające parametry trasy.

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> .

Implementuje

Dotyczy