Dela via


CandidateSet.ReplaceEndpoint(Int32, Endpoint, RouteValueDictionary) Method

Definition

Replaces the Endpoint at the provided index with the provided 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)

Parameters

index
Int32

The candidate index.

endpoint
Endpoint

The Endpoint to replace the original Endpoint at the index. If endpoint is null. the candidate will be marked as invalid.

values
RouteValueDictionary

The RouteValueDictionary to replace the original RouteValueDictionary at the index.

Applies to