HttpMethodActionConstraint Class   
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The implementation of IActionConstraint used to enforce HTTP method filtering when MVC is used with legacy IRouter support. The HttpMethodActionConstraint can be used to determine the set of HTTP methods supported by an action.
public ref class HttpMethodActionConstraint : Microsoft::AspNetCore::Mvc::ActionConstraints::IActionConstraintpublic class HttpMethodActionConstraint : Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstrainttype HttpMethodActionConstraint = class
    interface IActionConstraint
    interface IActionConstraintMetadataPublic Class HttpMethodActionConstraint
Implements IActionConstraint- Inheritance
- 
				HttpMethodActionConstraint
- Implements
Constructors
| HttpMethodActionConstraint(IEnumerable<String>) | Creates a new instance of HttpMethodActionConstraint. | 
Fields
| HttpMethodConstraintOrder | The Order value used by HttpMethodActionConstraint. | 
Properties
| HttpMethods | Gets the list of allowed HTTP methods. Will return an empty list if all HTTP methods are allowed. | 
| Order | The constraint order. | 
Methods
| Accept(ActionConstraintContext) | Determines whether an action is a valid candidate for selection. |