开发者

What is MapRoute namespaces parameter for?

开发者 https://www.devze.com 2022-12-31 08:24 出处:网络
ASP.NET MVC\'s MapRoute method has a parameter named namespaces. From looking in the code, I see that this parameter is saved in the Route objec开发者_如何转开发t in DataTokens[\"Namespaces\"].

ASP.NET MVC's MapRoute method has a parameter named namespaces. From looking in the code, I see that this parameter is saved in the Route objec开发者_如何转开发t in DataTokens["Namespaces"].

It seems to me that it has some meaning... anyone knows what is it for?


In MVC4 'namespaces' parameters is no longer a secret, it optionally provides namespaces to search for controllers. It can be used with Areas, for example.

Documentation: http://msdn.microsoft.com/en-us/library/dd492682(v=vs.108).aspx

I think this question should be deleted as outdated.

0

精彩评论

暂无评论...
验证码 换一张
取 消