/// <summary> /// Restricts this named pattern part to only accept content /// that does not match the string specified. /// </summary> /// <param name="name">The name that cannot be matched.</param> /// <returns></returns> public PatternRoute AnythingBut(string name) { targetPartSubRule.DoesNotAccept(name); return(route); }