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)

public:
virtual bool IsValidForRequest(
	ControllerContext^ controllerContext, 
	MethodInfo^ methodInfo
) override

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: