Freigeben über


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)

Syntax

'Declaration
Public Shared Sub RegisterAllAreas
public static void RegisterAllAreas()
public:
static void RegisterAllAreas()

Remarks

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

See Also

Reference

AreaRegistration Class

RegisterAllAreas Overload

System.Web.Mvc Namespace