HtmlHelperExtensions.HttpMethodOverride Method (HtmlHelper, ActionType)

 

Emits a hidden form variable for X-Http-Method-Override. The only valid values for actionType are ActionType.Delete and ActionType.Update.

Namespace:   Microsoft.Web.Mvc.Resources
Assembly:  Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)

Syntax

public static MvcHtmlString HttpMethodOverride(
    this HtmlHelper html,
    ActionType actionType
)
public:
[ExtensionAttribute]
static MvcHtmlString^ HttpMethodOverride(
    HtmlHelper^ html,
    ActionType actionType
)
static member HttpMethodOverride : 
        html:HtmlHelper *
        actionType:ActionType -> MvcHtmlString
<ExtensionAttribute>
Public Shared Function HttpMethodOverride (
    html As HtmlHelper,
    actionType As ActionType
) As MvcHtmlString

Parameters

Return Value

Type: System.Web.Mvc.MvcHtmlString

The HTML-encoded string.

See Also

HtmlHelperExtensions Class
Microsoft.Web.Mvc.Resources Namespace

Return to top