DefaultDirectRouteProvider.GetRoutePrefix(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 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.