DefaultHttpControllerSelector.GetControllerMapping Method
Returns a map, keyed by controller string, of all HttpControllerDescriptor that the selector can select.
Namespace: System.Web.Http.Dispatcher
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Overridable Function GetControllerMapping As IDictionary(Of String, HttpControllerDescriptor)
'Usage
Dim instance As DefaultHttpControllerSelector
Dim returnValue As IDictionary(Of String, HttpControllerDescriptor)
returnValue = instance.GetControllerMapping()
public virtual IDictionary<string, HttpControllerDescriptor> GetControllerMapping()
public:
virtual IDictionary<String^, HttpControllerDescriptor^>^ GetControllerMapping()
abstract GetControllerMapping : unit -> IDictionary<string, HttpControllerDescriptor>
override GetControllerMapping : unit -> IDictionary<string, HttpControllerDescriptor>
public function GetControllerMapping() : IDictionary<String, HttpControllerDescriptor>
Return Value
Type: System.Collections.Generic.IDictionary<String, HttpControllerDescriptor>
A map of all HttpControllerDescriptor that the selector can select, or null if the selector does not have a well-defined mapping of HttpControllerDescriptor.
Implements
IHttpControllerSelector.GetControllerMapping()
Remarks
This is primarily called by IApiExplorer to discover all the possible controllers in the system.