CandidateSet.ReplaceEndpoint(Int32, Endpoint, RouteValueDictionary) 方法

定义

Endpoint 提供的 index 中的 替换为提供的 endpoint

public:
 void ReplaceEndpoint(int index, Microsoft::AspNetCore::Http::Endpoint ^ endpoint, Microsoft::AspNetCore::Routing::RouteValueDictionary ^ values);
public void ReplaceEndpoint (int index, Microsoft.AspNetCore.Http.Endpoint endpoint, Microsoft.AspNetCore.Routing.RouteValueDictionary values);
public void ReplaceEndpoint (int index, Microsoft.AspNetCore.Http.Endpoint? endpoint, Microsoft.AspNetCore.Routing.RouteValueDictionary? values);
member this.ReplaceEndpoint : int * Microsoft.AspNetCore.Http.Endpoint * Microsoft.AspNetCore.Routing.RouteValueDictionary -> unit
Public Sub ReplaceEndpoint (index As Integer, endpoint As Endpoint, values As RouteValueDictionary)

参数

index
Int32

候选索引。

endpoint
Endpoint

Endpoint 替换 处的原始 Endpointindex。 如果 endpointnull。 候选项将被标记为无效。

values
RouteValueDictionary

RouteValueDictionary 替换 处的原始 RouteValueDictionaryindex

适用于