HtmlHelper.HttpMethodOverride Method (HttpVerbs)
Visual Studio 2010
Returns a hidden input element that identifies the override method for the specified verb that represents the HTTP data-transfer method used by the client.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
'Declaration Public Function HttpMethodOverride ( _ httpVerb As HttpVerbs _ ) As MvcHtmlString
Parameters
- httpVerb
- Type: System.Web.Mvc.HttpVerbs
The verb that represents the HTTP data-transfer method used by the client.
Return Value
Type: System.Web.Mvc.MvcHtmlStringThe override method that uses the verb that represents the HTTP data-transfer method used by the client.
| Exception | Condition |
|---|---|
| ArgumentException | The httpVerb parameter is not "PUT", "DELETE", or "HEAD". |
Community Additions
ADD
Show: