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
System_CAPS_pubmethodSystem_CAPS_static IsHttpMethod(HttpRequestBase, HttpVerbs)

Gets a value that indicates whether the HTTP data-transfer method was used by the client.

System_CAPS_pubmethodSystem_CAPS_static IsHttpMethod(HttpRequestBase, HttpVerbs, Boolean)

Gets a value that indicates whether the HTTP data-transfer method was used by the client.

System_CAPS_pubmethodSystem_CAPS_static IsHttpMethod(HttpRequestBase, String)

Gets a value that indicates whether the HTTP data-transfer method was used by the client.

System_CAPS_pubmethodSystem_CAPS_static 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

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

  • allowOverride
    Type: System.Boolean

    true 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

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

  • allowOverride
    Type: System.Boolean

    true 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