Share via


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

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.

See Also

Reference

IHttpActionSelector Interface

System.Web.Http.Controllers Namespace