Dela via


HttpMethodActionConstraint Class

Definition

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

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.

Applies to