HtmlHelper::HttpMethodOverride Method
Returns a hidden input element that identifies the override method for the HTTP data-transfer method that was used by the client.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
| Name | Description | |
|---|---|---|
![]() | HttpMethodOverride(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. |
![]() | HttpMethodOverride(String^) | Returns a hidden input element that identifies the override method for the specified HTTP data-transfer method that was used by the client. |
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.
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::MvcHtmlString^The override method that uses the verb that represents the HTTP data-transfer method used by the client.
| Exception | Condition |
|---|---|
| ArgumentNullException | The httpVerb parameter is not "PUT", "DELETE", or "HEAD". |
HtmlHelper::HttpMethodOverride Method (String^)
Returns a hidden input element that identifies the override method for the specified HTTP data-transfer method that was used by the client.
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::MvcHtmlString^The override method that uses the HTTP data-transfer method that was used by the client.
| Exception | Condition |
|---|---|
| ArgumentNullException | The httpVerb parameter is not "PUT", "DELETE", or "HEAD". |
