Class HttpHeadAttribute
Specifies that the HTTP request must be the HTTP HEAD method.
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public sealed class HttpHeadAttribute : ActionMethodSelectorAttribute
- Inheritance
-
HttpHeadAttribute
- Inherited Members
Constructors
HttpHeadAttribute()
Initializes a new instance of the HttpHeadAttribute class.
public HttpHeadAttribute()
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
controllerContextControllerContextThe controller context.
methodInfoMethodInfoInformation about the action method.
Returns
- bool
true if the action method request is valid for the specified controller context; otherwise, false.