MvcForm Class
Represents an HTML form element in an MVC view.
Namespace: System.Web.Mvc.Html
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
The MvcForm type exposes the following members.
Name | Description | |
---|---|---|
![]() | MvcForm(HttpResponseBase) | Obsolete. Initializes a new instance of the MvcForm class using the specified HTTP response object. |
![]() | MvcForm(ViewContext) | Initializes a new instance of the MvcForm class using the specified view context. |
Name | Description | |
---|---|---|
![]() | Dispose() | Releases all resources that are used by the current instance of the MvcForm class. |
![]() | Dispose(Boolean) | Releases unmanaged and, optionally, managed resources used by the current instance of the MvcForm class. |
![]() | EndForm | Ends the form and disposes of all form resources. |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
A MvcForm instance is returned by both the BeginForm and BeginRouteForm extension methods of the HtmlHelper and AjaxHelper classes.