Partager via


DefaultHtmlGeneratorExtensions.GenerateRouteForm Méthode

Définition

Génère un formulaire pour un itinéraire.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Mvc::Rendering::TagBuilder ^ GenerateRouteForm(Microsoft::AspNetCore::Mvc::ViewFeatures::IHtmlGenerator ^ generator, Microsoft::AspNetCore::Mvc::Rendering::ViewContext ^ viewContext, System::String ^ routeName, System::Object ^ routeValues, System::String ^ fragment, System::String ^ method, System::Object ^ htmlAttributes);
public static Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateRouteForm (this Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator generator, Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, string routeName, object routeValues, string fragment, string method, object htmlAttributes);
static member GenerateRouteForm : Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator * Microsoft.AspNetCore.Mvc.Rendering.ViewContext * string * obj * string * string * obj -> Microsoft.AspNetCore.Mvc.Rendering.TagBuilder
<Extension()>
Public Function GenerateRouteForm (generator As IHtmlGenerator, viewContext As ViewContext, routeName As String, routeValues As Object, fragment As String, method As String, htmlAttributes As Object) As TagBuilder

Paramètres

generator
IHtmlGenerator

L’IHtmlGeneratoropérateur

viewContext
ViewContext

L’ViewContextopérateur

routeName
String

Nam eof l’itinéraire.

routeValues
Object

Valeurs d'itinéraire.

fragment
String

Fragment.

method
String

Méthode form.

htmlAttributes
Object

Attributs html.

Retours

L’TagBuilderopérateur

S’applique à