HttpGetAttribute.IsValidForRequest Method

Visual Studio 2010

Determines whether a request is a valid HTTP GET request.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

'Declaration
Public Overrides Function IsValidForRequest ( _
	controllerContext As ControllerContext, _
	methodInfo As MethodInfo _
) As Boolean

Parameters

controllerContext
Type: System.Web.Mvc.ControllerContext
The context within which the controller operates. The context information includes the controller, HTTP content, request context, and route data.
methodInfo
Type: System.Reflection.MethodInfo
Encapsulates information about a method, such as its type, return type, and arguments.

Return Value

Type: System.Boolean
true if the request is valid; otherwise, false.

Community Additions

ADD
Show: