MvcForm Class

Definition

An HTML form element in an MVC view.

C#
public class MvcForm : IDisposable
Inheritance
MvcForm
Implements

Constructors

MvcForm(ViewContext, HtmlEncoder)

Initializes a new instance of MvcForm.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

EndForm()

Renders the </form> end tag to the response.

GenerateEndForm()

Renders EndOfFormContent and the </form>.

Applies to

Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0