Share via


SetRouteConstraint<TSet> Class

Definition

A route constraint that constrains a route parameter value to be either included or excluded from a set of values of type TSet.

public class SetRouteConstraint<TSet> : System.Web.Http.Routing.IHttpRouteConstraint
type SetRouteConstraint<'Set> = class
    interface IHttpRouteConstraint
Public Class SetRouteConstraint(Of TSet)
Implements IHttpRouteConstraint

Type Parameters

TSet

Type of set of values to include or exclude.

Inheritance
SetRouteConstraint<TSet>
Implements
System.Web.Http.Routing.IHttpRouteConstraint

Constructors

SetRouteConstraint<TSet>(HashSet<TSet>, Boolean)

Initializes a new instance of the SetRouteConstraint<TSet> class. Using the matchOnExcluded to indicate whether the constraint requires the parameter value to be included or excluded from the provided set of values.

Properties

Excluded

Indicates whether the matching parameter name should be included or excluded in the value set in order to be a match.

Set

Gets the set of excluded or included values.

Methods

Match(HttpRequestMessage, IHttpRoute, String, IDictionary<String,Object>, HttpRouteDirection) System.Web.Http.Routing.IHttpRouteConstraint.Match(System.Net.Http.HttpRequestMessage,System.Web.Http.Routing.IHttpRoute,System.String,System.Collections.Generic.IDictionary{System.String,System.Object},System.Web.Http.Routing.HttpRouteDirection)

Applies to