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