IHttpActionSelector.GetActionMapping Method
Returns a map, keyed by action string, of all HttpActionDescriptor that the selector can select. This is primarily called by IApiExplorer to discover all the possible actions in the controller.
Namespace: System.Web.Http.Controllers
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Function GetActionMapping ( _
controllerDescriptor As HttpControllerDescriptor _
) As ILookup(Of String, HttpActionDescriptor)
'Usage
Dim instance As IHttpActionSelector
Dim controllerDescriptor As HttpControllerDescriptor
Dim returnValue As ILookup(Of String, HttpActionDescriptor)
returnValue = instance.GetActionMapping(controllerDescriptor)
ILookup<string, HttpActionDescriptor> GetActionMapping(
HttpControllerDescriptor controllerDescriptor
)
ILookup<String^, HttpActionDescriptor^>^ GetActionMapping(
HttpControllerDescriptor^ controllerDescriptor
)
abstract GetActionMapping :
controllerDescriptor:HttpControllerDescriptor -> ILookup<string, HttpActionDescriptor>
function GetActionMapping(
controllerDescriptor : HttpControllerDescriptor
) : ILookup<String, HttpActionDescriptor>
Parameters
controllerDescriptor
Type: System.Web.Http.Controllers.HttpControllerDescriptorThe controller descriptor.
Return Value
Type: System.Linq.ILookup<String, HttpActionDescriptor>
A map of HttpActionDescriptor that the selector can select, or null if the selector does not have a well-defined mapping of HttpActionDescriptor.