Go to the documentation of this file.00001 using System.Web.Routing;
00002
00003 namespace N2.Web.Mvc
00004 {
00008 public class NonContentConstraint : IRouteConstraint
00009 {
00010 #region IRouteConstraint Members
00011
00012 public bool Match(System.Web.HttpContextBase httpContext, Route route, string parameterName, RouteValueDictionary values, RouteDirection routeDirection)
00013 {
00014 return values.ContainsKey(ContentRoute.ContentItemKey) == false;
00015 }
00016
00017 #endregion
00018 }
00019 }