HtmlHelper.HttpMethodOverride Method (HttpVerbs)

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.

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

Syntax

'Declaration
Public Function HttpMethodOverride ( _
    httpVerb As HttpVerbs _
) As MvcHtmlString
public MvcHtmlString HttpMethodOverride(
    HttpVerbs httpVerb
)
public:
MvcHtmlString^ HttpMethodOverride(
    HttpVerbs httpVerb
)

Parameters

Return Value

Type: System.Web.Mvc.MvcHtmlString
The override method that uses the verb that represents the HTTP data-transfer method used by the client.

Exceptions

Exception Condition
ArgumentException

The httpVerb parameter is not "PUT", "DELETE", or "HEAD".

See Also

Reference

HtmlHelper Class

HttpMethodOverride Overload

System.Web.Mvc Namespace