HttpMethodActionConstraint Class
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::IActionConstraint
public class HttpMethodActionConstraint : Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraint
type HttpMethodActionConstraint = class
interface IActionConstraint
interface IActionConstraintMetadata
Public Class HttpMethodActionConstraint
Implements IActionConstraint
- Inheritance
-
HttpMethodActionConstraint
- Implements
Http |
Creates a new instance of HttpMethodActionConstraint. |
Http |
The Order value used by HttpMethodActionConstraint. |
Http |
Gets the list of allowed HTTP methods. Will return an empty list if all HTTP methods are allowed. |
Order |
The constraint order. |
Accept(Action |
Determines whether an action is a valid candidate for selection. |
Proizvod | Verzije |
---|---|
ASP.NET Core | 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |