Export (0) Print
Expand All

MvcForm Class

Represents an HTML form element in an MVC view.

System.Object
  System.Web.Mvc.Html.MvcForm

Namespace:  System.Web.Mvc.Html
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

public class MvcForm : IDisposable

The MvcForm type exposes the following members.

  NameDescription
Public methodMvcForm(HttpResponseBase) Obsolete. Initializes a new instance of the MvcForm class using the specified HTTP response object.
Public methodMvcForm(ViewContext)Initializes a new instance of the MvcForm class using the specified view context.
Top

  NameDescription
Public methodDispose()Releases all resources that are used by the current instance of the MvcForm class.
Protected methodDispose(Boolean)Releases unmanaged and, optionally, managed resources used by the current instance of the MvcForm class.
Public methodEndFormEnds the form and disposes of all form resources.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

A MvcForm instance is returned by both the BeginForm and BeginRouteForm extension methods of the HtmlHelper and AjaxHelper classes.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft