예제 #1
0
 public static void IgnoreRoute(RouteCollection routes, string url, RouteValueDictionary constraints)
 {
     if (routes == null)
     {
         throw new ArgumentNullException("routes");
     }
     if (url == null)
     {
         throw new ArgumentNullException("url");
     }
     IgnoreRoute ignore = new IgnoreRoute(url);
     ignore.Constraints = constraints;
     routes.Add(ignore);
 }
예제 #2
0
        public static void IgnoreRoute
            (RouteCollection routes, string url, RouteValueDictionary constraints)
        {
            if (routes == null)
            {
                throw new ArgumentNullException("routes");
            }
            if (url == null)
            {
                throw new ArgumentNullException("url");
            }
            IgnoreRoute ignore = new IgnoreRoute(url);

            ignore.Constraints = constraints;
            routes.Add(ignore);
        }