DefaultHtmlGeneratorExtensions.GenerateForm Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Generates a form.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Mvc::Rendering::TagBuilder ^ GenerateForm(Microsoft::AspNetCore::Mvc::ViewFeatures::IHtmlGenerator ^ generator, Microsoft::AspNetCore::Mvc::Rendering::ViewContext ^ viewContext, System::String ^ actionName, System::String ^ controllerName, System::String ^ fragment, System::Object ^ routeValues, System::String ^ method, System::Object ^ htmlAttributes);
public static Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateForm (this Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator generator, Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, string actionName, string controllerName, string fragment, object routeValues, string method, object htmlAttributes);
static member GenerateForm : Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator * Microsoft.AspNetCore.Mvc.Rendering.ViewContext * string * string * string * obj * string * obj -> Microsoft.AspNetCore.Mvc.Rendering.TagBuilder
<Extension()>
Public Function GenerateForm (generator As IHtmlGenerator, viewContext As ViewContext, actionName As String, controllerName As String, fragment As String, routeValues As Object, method As String, htmlAttributes As Object) As TagBuilder
Parameters
- generator
- IHtmlGenerator
The IHtmlGenerator.
- viewContext
- ViewContext
The ViewContext.
- actionName
- String
The action name.
- controllerName
- String
The name of the controller.
- fragment
- String
The fragment.
- routeValues
- Object
The route values.
- method
- String
The form method.
- htmlAttributes
- Object
The html attributes.