Compartir a través de


ControllerEndpointRouteBuilderExtensions.MapControllers Método

Definición

Agrega puntos de conexión para las acciones del controlador a IEndpointRouteBuilder sin especificar ninguna ruta.

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

Parámetros

Devoluciones

para ControllerActionEndpointConventionBuilder los puntos de conexión asociados a las acciones del controlador.

Se aplica a