Condividi tramite


ControllerEndpointRouteBuilderExtensions.MapControllers Metodo

Definizione

Aggiunge endpoint per le azioni del controller all'oggetto IEndpointRouteBuilder senza specificare alcuna route.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::ControllerActionEndpointConventionBuilder ^ MapControllers(Microsoft::AspNetCore::Routing::IEndpointRouteBuilder ^ endpoints);
public static Microsoft.AspNetCore.Builder.ControllerActionEndpointConventionBuilder MapControllers (this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints);
static member MapControllers : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder -> Microsoft.AspNetCore.Builder.ControllerActionEndpointConventionBuilder
<Extension()>
Public Function MapControllers (endpoints As IEndpointRouteBuilder) As ControllerActionEndpointConventionBuilder

Parametri

Restituisce

Oggetto ControllerActionEndpointConventionBuilder per gli endpoint associati alle azioni del controller.

Si applica a