HttpPostAttribute.IsValidHttpMethod Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Namespace: System.Web.Http
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Function IsValidHttpMethod ( _
httpMethod As HttpMethod, _
methodInfo As MethodInfo _
) As Boolean
public bool IsValidHttpMethod(
HttpMethod httpMethod,
MethodInfo methodInfo
)
public:
virtual bool IsValidHttpMethod(
HttpMethod^ httpMethod,
MethodInfo^ methodInfo
) sealed
abstract IsValidHttpMethod :
httpMethod:HttpMethod *
methodInfo:MethodInfo -> bool
override IsValidHttpMethod :
httpMethod:HttpMethod *
methodInfo:MethodInfo -> bool
public final function IsValidHttpMethod(
httpMethod : HttpMethod,
methodInfo : MethodInfo
) : boolean
Parameters
- httpMethod
Type: System.Net.Http.HttpMethod
- methodInfo
Type: System.Reflection.MethodInfo
Return Value
Type: System.Boolean