Export (0) Print
Expand All

HttpPostAttribute.IsValidForRequest Method

Determines whether a request is a valid HTTP POST request.

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

abstract IsValidForRequest : 
        controllerContext:ControllerContext * 
        methodInfo:MethodInfo -> bool  
override IsValidForRequest : 
        controllerContext:ControllerContext * 
        methodInfo:MethodInfo -> bool


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.

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.
© 2015 Microsoft