MvcContrib.Routing.RegexRoute.RegexRoute C# (CSharp) Method

RegexRoute() public method

Initializes a new instance of the RegexRoute class.
public RegexRoute ( string regex, Func getVirtualPath, IRouteHandler routeHandler ) : System
regex string The regular expression that this route handler is supposed to handle.
getVirtualPath Func A function to use to generate a virtual path given the request context, incoming route value dictionary and this instance.
routeHandler IRouteHandler The route handler to handle this route.
return System
        public RegexRoute(string regex, Func<RequestContext, RouteValueDictionary, RegexRoute, VirtualPathData> getVirtualPath, IRouteHandler routeHandler)
            : this(regex, getVirtualPath, null, routeHandler)
        {
        }

Same methods

RegexRoute::RegexRoute ( string regex, Func getVirtualPath, RouteValueDictionary defaults, IRouteHandler routeHandler ) : System
RegexRoute::RegexRoute ( string regex, IRouteHandler routeHandler ) : System
RegexRoute::RegexRoute ( string regex, RouteValueDictionary defaults, IRouteHandler routeHandler ) : System
RegexRoute::RegexRoute ( string regex, string urlGenerator, Func getVirtualPath, RouteValueDictionary defaults, IRouteHandler routeHandler ) : System
RegexRoute::RegexRoute ( string regex, string urlGenerator, IRouteHandler routeHandler ) : System
RegexRoute::RegexRoute ( string regex, string urlGenerator, RouteValueDictionary defaults, IRouteHandler routeHandler ) : System