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.

适用于