HttpRequestBaseExtensions.IsHttpMethod Method
Gets a value that indicates whether the HTTP data-transfer method was used by the client.
Namespace: Microsoft.Web.Mvc.Resources
Assembly: Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)
Overload List
Name | Description | |
---|---|---|
![]() ![]() |
IsHttpMethod(HttpRequestBase, HttpVerbs) | Gets a value that indicates whether the HTTP data-transfer method was used by the client. |
![]() ![]() |
IsHttpMethod(HttpRequestBase, HttpVerbs, Boolean) | Gets a value that indicates whether the HTTP data-transfer method was used by the client. |
![]() ![]() |
IsHttpMethod(HttpRequestBase, String) | Gets a value that indicates whether the HTTP data-transfer method was used by the client. |
![]() ![]() |
IsHttpMethod(HttpRequestBase, String, Boolean) | Gets a value that indicates whether the HTTP data-transfer method was used by the client. |
See Also
HttpRequestBaseExtensions Class
Microsoft.Web.Mvc.Resources Namespace
Return to top
HttpRequestBaseExtensions.IsHttpMethod Method (HttpRequestBase, HttpVerbs)
Gets a value that indicates whether the HTTP data-transfer method was used by the client.
Syntax
public static bool IsHttpMethod(
this HttpRequestBase request,
HttpVerbs httpMethod
)
public:
[ExtensionAttribute]
static bool IsHttpMethod(
HttpRequestBase^ request,
HttpVerbs httpMethod
)
static member IsHttpMethod :
request:HttpRequestBase *
httpMethod:HttpVerbs -> bool
<ExtensionAttribute>
Public Shared Function IsHttpMethod (
request As HttpRequestBase,
httpMethod As HttpVerbs
) As Boolean
Parameters
request
Type: System.Web.HttpRequestBaseThe request.
httpMethod
Type: System.Web.Mvc.HttpVerbsThe http method.
Return Value
Type: System.Boolean
true if the HTTP data-transfer method was used by the client; otherwise, false.
Return to top
HttpRequestBaseExtensions.IsHttpMethod Method (HttpRequestBase, HttpVerbs, Boolean)
Gets a value that indicates whether the HTTP data-transfer method was used by the client.
Syntax
public static bool IsHttpMethod(
this HttpRequestBase request,
HttpVerbs httpMethod,
bool allowOverride
)
public:
[ExtensionAttribute]
static bool IsHttpMethod(
HttpRequestBase^ request,
HttpVerbs httpMethod,
bool allowOverride
)
static member IsHttpMethod :
request:HttpRequestBase *
httpMethod:HttpVerbs *
allowOverride:bool -> bool
<ExtensionAttribute>
Public Shared Function IsHttpMethod (
request As HttpRequestBase,
httpMethod As HttpVerbs,
allowOverride As Boolean
) As Boolean
Parameters
request
Type: System.Web.HttpRequestBaseThe request.
httpMethod
Type: System.Web.Mvc.HttpVerbsThe http method.
allowOverride
Type: System.Booleantrue if it allows override; otherwise, false.
Return Value
Type: System.Boolean
true if the HTTP data-transfer method was used by the client; otherwise, false.
Return to top
HttpRequestBaseExtensions.IsHttpMethod Method (HttpRequestBase, String)
Gets a value that indicates whether the HTTP data-transfer method was used by the client.
Syntax
public static bool IsHttpMethod(
this HttpRequestBase request,
string httpMethod
)
public:
[ExtensionAttribute]
static bool IsHttpMethod(
HttpRequestBase^ request,
String^ httpMethod
)
static member IsHttpMethod :
request:HttpRequestBase *
httpMethod:string -> bool
<ExtensionAttribute>
Public Shared Function IsHttpMethod (
request As HttpRequestBase,
httpMethod As String
) As Boolean
Parameters
request
Type: System.Web.HttpRequestBaseThe request.
httpMethod
Type: System.StringThe HTTP data-transfer method.
Return Value
Type: System.Boolean
true if the HTTP data-transfer method was used by the client; otherwise, false.
Return to top
HttpRequestBaseExtensions.IsHttpMethod Method (HttpRequestBase, String, Boolean)
Gets a value that indicates whether the HTTP data-transfer method was used by the client.
Syntax
public static bool IsHttpMethod(
this HttpRequestBase request,
string httpMethod,
bool allowOverride
)
public:
[ExtensionAttribute]
static bool IsHttpMethod(
HttpRequestBase^ request,
String^ httpMethod,
bool allowOverride
)
static member IsHttpMethod :
request:HttpRequestBase *
httpMethod:string *
allowOverride:bool -> bool
<ExtensionAttribute>
Public Shared Function IsHttpMethod (
request As HttpRequestBase,
httpMethod As String,
allowOverride As Boolean
) As Boolean
Parameters
request
Type: System.Web.HttpRequestBaseThe request.
httpMethod
Type: System.StringThe http method.
allowOverride
Type: System.Booleantrue if it allows override; otherwise, false.
Return Value
Type: System.Boolean
true if the HTTP data-transfer method was used by the client; otherwise, false.
Return to top