DefaultDirectRouteProvider.GetAreaPrefix(ControllerDescriptor) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the area prefix from the provided controller.
protected virtual string GetAreaPrefix (System.Web.Mvc.ControllerDescriptor controllerDescriptor);
abstract member GetAreaPrefix : System.Web.Mvc.ControllerDescriptor -> string
override this.GetAreaPrefix : System.Web.Mvc.ControllerDescriptor -> string
Protected Overridable Function GetAreaPrefix (controllerDescriptor As ControllerDescriptor) As String
Parameters
- controllerDescriptor
- ControllerDescriptor
The controller descriptor.
Returns
The area prefix or null.