C# Class ContainsConstraint, code

Inheritance: IHttpRouteConstraint
显示文件 Open project: shendongnian/code Class Usage Examples

Public Methods

Method Description
ContainsConstraint ( Array, array, bool match )

Check if param contains any of values listed in array.

Match ( HttpRequestMessage request, IHttpRoute route, string parameterName, IDictionary values, HttpRouteDirection routeDirection ) : bool

Method Details

ContainsConstraint() public method

Check if param contains any of values listed in array.
public ContainsConstraint ( Array, array, bool match )
array Array, The items to compare against.
match bool Whether we are matching or NOT matching.

Match() public method

public Match ( HttpRequestMessage request, IHttpRoute route, string parameterName, IDictionary values, HttpRouteDirection routeDirection ) : bool
request System.Net.Http.HttpRequestMessage
route IHttpRoute
parameterName string
values IDictionary
routeDirection HttpRouteDirection
return bool