HttpMethodRouteConstraint Class

Definition

Constrains the HTTP method of request or a route.

public ref class HttpMethodRouteConstraint : Microsoft::AspNetCore::Routing::IRouteConstraint
public class HttpMethodRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint
type HttpMethodRouteConstraint = class
    interface IRouteConstraint
type HttpMethodRouteConstraint = class
    interface IRouteConstraint
    interface IParameterPolicy
type HttpMethodRouteConstraint = class
    interface IParameterPolicy
    interface IRouteConstraint
Public Class HttpMethodRouteConstraint
Implements IRouteConstraint
Inheritance
HttpMethodRouteConstraint
Implements

Constructors

HttpMethodRouteConstraint(String[])

Creates a new instance of HttpMethodRouteConstraint that accepts the HTTP methods specified by allowedMethods.

Properties

AllowedMethods

Gets the HTTP methods allowed by the constraint.

Methods

Match(HttpContext, IRouter, String, RouteValueDictionary, RouteDirection)

Determines whether the URL parameter contains a valid value for this constraint.

Applies to