IActionSelector.SelectCandidates(RouteContext) 方法

定义

为与 context关联的当前请求选择一组ActionDescriptor候选项。

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)

参数

context
RouteContext

RouteContext与当前请求关联的 。

返回

一组候选项 ActionDescriptornull

注解

由传统路由用于选择与当前请求的路由值匹配的一组操作。 此方法不调用与候选项关联的操作约束

属性路由不调用此方法。

适用于