What is the MapRoute namespace parameter?

ASP.NET MVC The MapRoute method has a parameter named namespaces. From the code view, I see that this parameter is stored in the object Routein DataTokens["Namespaces"].

It seems to me that it makes some sense ... does anyone know what it is for?

+5
source share
1 answer

MVC4 is no longer a secret in the namespace parameters; it additionally provides namespaces for searching for controllers. For example, it can be used with Areas.

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

I think this question should be deleted as deprecated.

0
source

All Articles