EndpointRouteBuilderExtensions.Map Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
Map(IEndpointRouteBuilder, RoutePattern, RequestDelegate) |
Aggiunge un RouteEndpoint oggetto all'oggetto IEndpointRouteBuilder che corrisponde alle richieste HTTP per il modello specificato. |
Map(IEndpointRouteBuilder, RoutePattern, Delegate) |
Aggiunge un RouteEndpoint oggetto all'oggetto IEndpointRouteBuilder che corrisponde alle richieste HTTP per il modello specificato. |
Map(IEndpointRouteBuilder, String, RequestDelegate) |
Aggiunge un RouteEndpoint oggetto all'oggetto IEndpointRouteBuilder che corrisponde alle richieste HTTP per il modello specificato. |
Map(IEndpointRouteBuilder, String, Delegate) |
Aggiunge un RouteEndpoint oggetto all'oggetto IEndpointRouteBuilder che corrisponde alle richieste HTTP per il modello specificato. |
Map(IEndpointRouteBuilder, RoutePattern, RequestDelegate)
Aggiunge un RouteEndpoint oggetto all'oggetto IEndpointRouteBuilder che corrisponde alle richieste HTTP per il modello specificato.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IEndpointConventionBuilder ^ Map(Microsoft::AspNetCore::Routing::IEndpointRouteBuilder ^ endpoints, Microsoft::AspNetCore::Routing::Patterns::RoutePattern ^ pattern, Microsoft::AspNetCore::Http::RequestDelegate ^ requestDelegate);
public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder Map (this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, Microsoft.AspNetCore.Routing.Patterns.RoutePattern pattern, Microsoft.AspNetCore.Http.RequestDelegate requestDelegate);
static member Map : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder * Microsoft.AspNetCore.Routing.Patterns.RoutePattern * Microsoft.AspNetCore.Http.RequestDelegate -> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder
<Extension()>
Public Function Map (endpoints As IEndpointRouteBuilder, pattern As RoutePattern, requestDelegate As RequestDelegate) As IEndpointConventionBuilder
Parametri
- endpoints
- IEndpointRouteBuilder
Oggetto IEndpointRouteBuilder a cui aggiungere la route.
- pattern
- RoutePattern
Modello di route.
- requestDelegate
- RequestDelegate
Delegato eseguito quando l'endpoint corrisponde.
Restituisce
Oggetto IEndpointConventionBuilder che può essere usato per personalizzare ulteriormente l'endpoint.
Si applica a
Map(IEndpointRouteBuilder, RoutePattern, Delegate)
Aggiunge un RouteEndpoint oggetto all'oggetto IEndpointRouteBuilder che corrisponde alle richieste HTTP per il modello specificato.
public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder Map (this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, Microsoft.AspNetCore.Routing.Patterns.RoutePattern pattern, Delegate handler);
static member Map : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder * Microsoft.AspNetCore.Routing.Patterns.RoutePattern * Delegate -> Microsoft.AspNetCore.Builder.RouteHandlerBuilder
<Extension()>
Public Function Map (endpoints As IEndpointRouteBuilder, pattern As RoutePattern, handler As Delegate) As RouteHandlerBuilder
Parametri
- endpoints
- IEndpointRouteBuilder
Oggetto IEndpointRouteBuilder a cui aggiungere la route.
- pattern
- RoutePattern
Modello di route.
- handler
- Delegate
Delegato eseguito quando l'endpoint corrisponde.
Restituisce
Oggetto RouteHandlerBuilder che può essere usato per personalizzare ulteriormente l'endpoint.
Si applica a
Map(IEndpointRouteBuilder, String, RequestDelegate)
Aggiunge un RouteEndpoint oggetto all'oggetto IEndpointRouteBuilder che corrisponde alle richieste HTTP per il modello specificato.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IEndpointConventionBuilder ^ Map(Microsoft::AspNetCore::Routing::IEndpointRouteBuilder ^ endpoints, System::String ^ pattern, Microsoft::AspNetCore::Http::RequestDelegate ^ requestDelegate);
public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder Map (this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, Microsoft.AspNetCore.Http.RequestDelegate requestDelegate);
static member Map : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder * string * Microsoft.AspNetCore.Http.RequestDelegate -> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder
<Extension()>
Public Function Map (endpoints As IEndpointRouteBuilder, pattern As String, requestDelegate As RequestDelegate) As IEndpointConventionBuilder
Parametri
- endpoints
- IEndpointRouteBuilder
Oggetto IEndpointRouteBuilder a cui aggiungere la route.
- pattern
- String
Modello di route.
- requestDelegate
- RequestDelegate
Delegato eseguito quando l'endpoint corrisponde.
Restituisce
Oggetto IEndpointConventionBuilder che può essere usato per personalizzare ulteriormente l'endpoint.
Si applica a
Map(IEndpointRouteBuilder, String, Delegate)
Aggiunge un RouteEndpoint oggetto all'oggetto IEndpointRouteBuilder che corrisponde alle richieste HTTP per il modello specificato.
public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder Map (this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, Delegate handler);
static member Map : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder * string * Delegate -> Microsoft.AspNetCore.Builder.RouteHandlerBuilder
<Extension()>
Public Function Map (endpoints As IEndpointRouteBuilder, pattern As String, handler As Delegate) As RouteHandlerBuilder
Parametri
- endpoints
- IEndpointRouteBuilder
Oggetto IEndpointRouteBuilder a cui aggiungere la route.
- pattern
- String
Modello di route.
- handler
- Delegate
Delegato eseguito quando l'endpoint corrisponde.
Restituisce
Oggetto RouteHandlerBuilder che può essere usato per personalizzare ulteriormente l'endpoint.