共用方式為


RouteEndpoint 建構函式

定義

初始化 RouteEndpoint 類別的新執行個體。

public:
 RouteEndpoint(Microsoft::AspNetCore::Http::RequestDelegate ^ requestDelegate, Microsoft::AspNetCore::Routing::Patterns::RoutePattern ^ routePattern, int order, Microsoft::AspNetCore::Http::EndpointMetadataCollection ^ metadata, System::String ^ displayName);
public RouteEndpoint (Microsoft.AspNetCore.Http.RequestDelegate requestDelegate, Microsoft.AspNetCore.Routing.Patterns.RoutePattern routePattern, int order, Microsoft.AspNetCore.Http.EndpointMetadataCollection metadata, string displayName);
public RouteEndpoint (Microsoft.AspNetCore.Http.RequestDelegate requestDelegate, Microsoft.AspNetCore.Routing.Patterns.RoutePattern routePattern, int order, Microsoft.AspNetCore.Http.EndpointMetadataCollection? metadata, string? displayName);
new Microsoft.AspNetCore.Routing.RouteEndpoint : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.Routing.Patterns.RoutePattern * int * Microsoft.AspNetCore.Http.EndpointMetadataCollection * string -> Microsoft.AspNetCore.Routing.RouteEndpoint
Public Sub New (requestDelegate As RequestDelegate, routePattern As RoutePattern, order As Integer, metadata As EndpointMetadataCollection, displayName As String)

參數

requestDelegate
RequestDelegate

用來處理端點要求的委派。

routePattern
RoutePattern

RoutePattern 用於 URL 比對的 。

order
Int32

指派給端點的順序。

metadata
EndpointMetadataCollection

EndpointMetadataCollection與端點相關聯的 或 中繼資料。

displayName
String

端點的資訊顯示名稱。

適用於