开发者

What is MapRoute namespaces parameter for?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜