C# Class Rebel.Cms.Web.Routing.IncludeExcludeRouteConstraint

Inheritance: IRouteConstraint
显示文件 Open project: RebelCMS/rebelcmsxu5

Public Methods

Method Description
IncludeExcludeRouteConstraint ( IEnumerable matches ) : System.Collections.Generic
Match ( System.Web.HttpContextBase httpContext, Route route, string parameterName, RouteValueDictionary values, RouteDirection routeDirection ) : bool

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

Method Details

IncludeExcludeRouteConstraint() public method

public IncludeExcludeRouteConstraint ( IEnumerable matches ) : System.Collections.Generic
matches IEnumerable
return System.Collections.Generic

Match() public method

Determines whether the URL parameter contains a valid value for this constraint.
public Match ( System.Web.HttpContextBase httpContext, Route route, string parameterName, RouteValueDictionary values, RouteDirection routeDirection ) : bool
httpContext System.Web.HttpContextBase An object that encapsulates information about the HTTP request.
route System.Web.Routing.Route The object that this constraint belongs to.
parameterName string The name of the parameter that is being checked.
values RouteValueDictionary An object that contains the parameters for the URL.
routeDirection RouteDirection An object that indicates whether the constraint check is being performed when an incoming request is being handled or when a URL is being generated.
return bool