ODataActionSelector.GetActionMapping(HttpControllerDescriptor) 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.
Returns a map, keyed by action string, of all System.Web.Http.Controllers.HttpActionDescriptor that the selector can select. This is primarily called by System.Web.Http.Description.IApiExplorer to discover all the possible actions in the controller.
public System.Linq.ILookup<string,System.Web.Http.Controllers.HttpActionDescriptor> GetActionMapping (System.Web.Http.Controllers.HttpControllerDescriptor controllerDescriptor);
abstract member GetActionMapping : System.Web.Http.Controllers.HttpControllerDescriptor -> System.Linq.ILookup<string, System.Web.Http.Controllers.HttpActionDescriptor>
override this.GetActionMapping : System.Web.Http.Controllers.HttpControllerDescriptor -> System.Linq.ILookup<string, System.Web.Http.Controllers.HttpActionDescriptor>
Public Function GetActionMapping (controllerDescriptor As HttpControllerDescriptor) As ILookup(Of String, HttpActionDescriptor)
Parameters
- controllerDescriptor
- System.Web.Http.Controllers.HttpControllerDescriptor
The controller descriptor.
Returns
A map of System.Web.Http.Controllers.HttpActionDescriptor that the selector can select, or null if the selector does not have a well-defined mapping of System.Web.Http.Controllers.HttpActionDescriptor.