我正在查看 MVC 的 Routing
概念,特别是下面一行:
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // Route Pattern
new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Default values.
);
一切正常,但我不明白 Route Name
的意义。
这只是一个术语吗?或者它有什么重要意义吗?
我是否没有使用它或者它在 MVC 4 中的哪些地方使用?
提前致谢。
最佳答案
Am I missing using it or where are the places it is used in MVC 4 ?
有一些使用路由名称的辅助方法。
关于c# - MVC 4 中路由名称的意义,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19316685/