码迷,mamicode.com
首页 > Web开发 > 详细

使用属性创建区域 (Creating Areas with Attributes) | 使用区域 | 高级路由特性 | 精通ASP-NET-MVC-5-弗瑞曼

时间:2016-06-10 16:23:21      阅读:219      评论:0      收藏:0      [点我收藏+]

标签:

技术分享

 

RouteArea属性将Route属性定义的所有路由都迁移到了特定的区域。 和 RoutePrefix属性组合的该属性的效果意味着访问Create动作方法

http://localhost:34855/Services/Users/Add/Adam/100

RouteArea 属性 并不 影响 Route 属性定义的路由,[Route("~/Test")]  Index动作方法:  http://localhost:34855/Test/

 

使用属性创建区域 (Creating Areas with Attributes) | 使用区域 | 高级路由特性 | 精通ASP-NET-MVC-5-弗瑞曼

标签:

原文地址:http://www.cnblogs.com/ganmk--jy/p/5573799.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!