MvcForm.Dispose Method (Boolean)
Releases unmanaged and, optionally, managed resources used by the current instance of the MvcForm class.
Namespace: System.Web.Mvc.Html
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Protected Overridable Sub Dispose ( _
disposing As Boolean _
)
protected virtual void Dispose(
bool disposing
)
protected:
virtual void Dispose(
bool disposing
)
Parameters
- disposing
Type: System.Boolean
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Remarks
This method is called by the public Dispose method. Dispose invokes the protected Dispose(Boolean) method with the disposing parameter set to true.
When the disposing parameter is true, this method releases all resources held by any managed objects that this MvcForm object references. This method invokes the Dispose method of each referenced object.