关于[Creating Custom Constraints For Razor Pages Routes]的摘要:
Razor Page already includes a wide range of constraints that can be used to help disambiguate routes. It is also possible for you to create your own custom constraint and then register that with the routing system.
原文地址: https://www.mikesdotnetting.com/article/333/creating-custom-constraints-for-razor-pages-routes