共用方式為


CandidateSet(Endpoint[], RouteValueDictionary[], Int32[]) 建構函式

定義

使用提供的 endpointsvaluesscores ,初始化 類別的新實例 CandidateSet

提供 建構函式來啟用 和 IEndpointSelectorPolicy 實作的 EndpointSelector 單元測試。

public:
 CandidateSet(cli::array <Microsoft::AspNetCore::Http::Endpoint ^> ^ endpoints, cli::array <Microsoft::AspNetCore::Routing::RouteValueDictionary ^> ^ values, cli::array <int> ^ scores);
public CandidateSet (Microsoft.AspNetCore.Http.Endpoint[] endpoints, Microsoft.AspNetCore.Routing.RouteValueDictionary[] values, int[] scores);
new Microsoft.AspNetCore.Routing.Matching.CandidateSet : Microsoft.AspNetCore.Http.Endpoint[] * Microsoft.AspNetCore.Routing.RouteValueDictionary[] * int[] -> Microsoft.AspNetCore.Routing.Matching.CandidateSet
Public Sub New (endpoints As Endpoint(), values As RouteValueDictionary(), scores As Integer())

參數

endpoints
Endpoint[]

以遞減優先順序排序的端點清單。

values
RouteValueDictionary[]

實例清單 RouteValueDictionary

scores
Int32[]

端點分數的清單。 Score.

適用於