AreaRegistration.RegisterAllAreas Method

Registers all areas in an ASP.NET MVC application.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

'Declaration
Public Shared Sub RegisterAllAreas
'Usage
AreaRegistration.RegisterAllAreas()

The RegisterAllAreas method finds all types in the application domain that derive from AreaRegistration and calls each of their RegisterArea methods.

Show: