Class HttpPutAttribute
Represents an attribute that is used to restrict an action method so that the method handles only HTTP PUT requests.
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public sealed class HttpPutAttribute : ActionMethodSelectorAttribute
- Inheritance
-
HttpPutAttribute
- Inherited Members
Constructors
HttpPutAttribute()
Initializes a new instance of the HttpPutAttribute class.
public HttpPutAttribute()
Methods
IsValidForRequest(ControllerContext, MethodInfo)
Determines whether the action method put request is valid for the specified controller context.
public override bool IsValidForRequest(ControllerContext controllerContext, MethodInfo methodInfo)
Parameters
controllerContext
ControllerContextThe controller context.
methodInfo
MethodInfoInformation about the action method.
Returns
- bool
true if the action method request is valid for the specified controller context; otherwise, false.