HttpMethodRouteConstraint 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.
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 |
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. |