Udostępnij za pośrednictwem


ControllerEndpointRouteBuilderExtensions.MapControllers Metoda

Definicja

Dodaje punkty końcowe dla akcji kontrolera do elementu IEndpointRouteBuilder bez określania żadnych tras.

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

Parametry

Zwraca

Element ControllerActionEndpointConventionBuilder dla punktów końcowych skojarzonych z akcjami kontrolera.

Dotyczy