RouteEndpoint Konstruktor

Definicja

Inicjuje nowe wystąpienie klasy 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)

Parametry

requestDelegate
RequestDelegate

Delegat używany do przetwarzania żądań punktu końcowego.

routePattern
RoutePattern

Element RoutePattern do użycia w dopasowaniu adresu URL.

order
Int32

Kolejność przypisana do punktu końcowego.

metadata
EndpointMetadataCollection

Metadane EndpointMetadataCollection lub skojarzone z punktem końcowym.

displayName
String

Informacyjna nazwa wyświetlana punktu końcowego.

Dotyczy