HttpPatchAttribute.IsValidForRequest Method

Determines whether a request is a valid HTTP PATCH 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

Parameters

controllerContext
Type: System.Web.Mvc.ControllerContext

The controller context.

methodInfo
Type: System.Reflection.MethodInfo

The method info.

Return Value

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