IActionSelector.SelectCandidates(RouteContext) 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.
Selects a set of ActionDescriptor candidates for the current request associated with
context
.
public:
System::Collections::Generic::IReadOnlyList<Microsoft::AspNetCore::Mvc::Abstractions::ActionDescriptor ^> ^ SelectCandidates(Microsoft::AspNetCore::Routing::RouteContext ^ context);
public System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor> SelectCandidates (Microsoft.AspNetCore.Routing.RouteContext context);
public System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor>? SelectCandidates (Microsoft.AspNetCore.Routing.RouteContext context);
abstract member SelectCandidates : Microsoft.AspNetCore.Routing.RouteContext -> System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor>
Public Function SelectCandidates (context As RouteContext) As IReadOnlyList(Of ActionDescriptor)
Parameters
- context
- RouteContext
The RouteContext associated with the current request.
Returns
A set of ActionDescriptor candidates or null
.
Remarks
Used by conventional routing to select the set of actions that match the route values for the current request. Action constraints associated with the candidates are not invoked by this method
Attribute routing does not call this method.