Freigeben über


IActionSelector.SelectCandidates(RouteContext) Methode

Definition

Wählt eine Gruppe von ActionDescriptor Kandidaten für die aktuelle Anforderung aus, die zugeordnet ist 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)

Parameter

context
RouteContext

Die RouteContext , die der aktuellen Anforderung zugeordnet ist.

Gibt zurück

Eine Gruppe von ActionDescriptor Kandidaten oder null.

Hinweise

Wird vom herkömmlichen Routing verwendet, um den Aktionssatz auszuwählen, der den Routenwerten für die aktuelle Anforderung entspricht. Aktionseinschränkungen, die den Kandidaten zugeordnet sind, werden von dieser Methode nicht aufgerufen.

Attributrouting ruft diese Methode nicht auf.

Gilt für: