Export (0) Print
Expand All

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)

'Declaration
Public Overrides Function IsValidForRequest ( _
	controllerContext As ControllerContext, _
	methodInfo As MethodInfo _
) As Boolean
'Usage
Dim instance As HttpPatchAttribute 
Dim controllerContext As ControllerContext 
Dim methodInfo As MethodInfo 
Dim returnValue As Boolean 

returnValue = instance.IsValidForRequest(controllerContext, _
	methodInfo)

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:
© 2014 Microsoft