Not
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Returns a hidden input element that identifies the override method for the specified HTTP data-transfer method that was used by the client.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Public Function HttpMethodOverride ( _
httpMethod As String _
) As MvcHtmlString
public MvcHtmlString HttpMethodOverride(
string httpMethod
)
public:
MvcHtmlString^ HttpMethodOverride(
String^ httpMethod
)
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.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | The httpVerb parameter is not "PUT", "DELETE", or "HEAD". |