Table of Contents

Class HttpPatchAttribute

Namespace
System.Web.Mvc
Assembly
System.Web.Mvc.dll

Represents an attribute that is used to restrict an action method so that the method handles only HTTP PATCH requests.

[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public sealed class HttpPatchAttribute : ActionMethodSelectorAttribute
Inheritance
HttpPatchAttribute
Inherited Members

Constructors

HttpPatchAttribute()

Initializes a new instance of the HttpPatchAttribute class.

public HttpPatchAttribute()

Methods

IsValidForRequest(ControllerContext, MethodInfo)

Determines whether the action method request is valid for the specified controller context.

public override bool IsValidForRequest(ControllerContext controllerContext, MethodInfo methodInfo)

Parameters

controllerContext ControllerContext

The controller context.

methodInfo MethodInfo

Information about the action method.

Returns

bool

true if the action method request is valid for the specified controller context; otherwise, false.