IHtmlGenerator.GenerateRouteForm Metoda

Definice

<Vygenerujte prvek formuláře>. Trasa s názvem routeName vygeneruje hodnotu atributu <akce formuláře>.

public:
 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
Public Function GenerateRouteForm (viewContext As ViewContext, routeName As String, routeValues As Object, method As String, htmlAttributes As Object) As TagBuilder

Parametry

viewContext
ViewContext

Instance ViewContext pro aktuální obor.

routeName
String

Název trasy.

routeValues
Object

Obsahuje Object parametry trasy. Parametry se načítají reflexí prozkoumáním vlastností .Object Obvykle se vytváří Object pomocí Object syntaxe inicializátoru. IDictionary<TKey,TValue> Případně instance obsahující parametry trasy.

method
String

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

htmlAttributes
Object

Atribut Object HTML elementu obsahuje. Alternativně může IDictionary<TKey,TValue> instance obsahující atributy HTML.

Návraty

TagBuilder

Instance TagBuilder elementu </form> .

Platí pro