HtmlHelper.HttpMethodOverride Method

Definition

Overloads

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.

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.

public System.Web.Mvc.MvcHtmlString HttpMethodOverride (string httpMethod);
member this.HttpMethodOverride : string -> System.Web.Mvc.MvcHtmlString
Public Function HttpMethodOverride (httpMethod As String) As MvcHtmlString

Parameters

httpMethod
String

The HTTP data-transfer method that was used by the client (DELETE, HEAD, or PUT).

Returns

MvcHtmlString

The override method that uses the HTTP data-transfer method that was used by the client.

Exceptions

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

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.

public System.Web.Mvc.MvcHtmlString HttpMethodOverride (System.Web.Mvc.HttpVerbs httpVerb);
member this.HttpMethodOverride : System.Web.Mvc.HttpVerbs -> System.Web.Mvc.MvcHtmlString
Public Function HttpMethodOverride (httpVerb As HttpVerbs) As MvcHtmlString

Parameters

httpVerb
HttpVerbs

The verb that represents the HTTP data-transfer method used by the client.

Returns

MvcHtmlString

The override method that uses the verb that represents the HTTP data-transfer method used by the client.

Exceptions

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

Applies to