Partilhar via


ControllerEndpointRouteBuilderExtensions.MapControllers Método

Definição

Adiciona pontos de extremidade para ações do IEndpointRouteBuilder controlador ao sem especificar nenhuma rota.

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

Retornos

Um ControllerActionEndpointConventionBuilder para pontos de extremidade associados a ações do controlador.

Aplica-se a