Partager via


ControllerEndpointRouteBuilderExtensions.MapControllers Méthode

Définition

Ajoute des points de terminaison pour les actions du contrôleur à sans IEndpointRouteBuilder spécifier d’itinéraires.

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

Paramètres

Retours

ControllerActionEndpointConventionBuilder pour les points de terminaison associés aux actions du contrôleur.

S’applique à