DefaultDirectRouteProvider.GetRoutePrefix(ControllerDescriptor) Method

Definition

Gets the route prefix from the provided controller.

protected virtual string GetRoutePrefix (System.Web.Mvc.ControllerDescriptor controllerDescriptor);
abstract member GetRoutePrefix : System.Web.Mvc.ControllerDescriptor -> string
override this.GetRoutePrefix : System.Web.Mvc.ControllerDescriptor -> string
Protected Overridable Function GetRoutePrefix (controllerDescriptor As ControllerDescriptor) As String

Parameters

controllerDescriptor
ControllerDescriptor

The controller descriptor.

Returns

The route prefix or null.

Applies to