ControllerEndpointRouteBuilderExtensions.MapControllers(IEndpointRouteBuilder) Method

Definition

Adds endpoints for controller actions to the IEndpointRouteBuilder without specifying any routes.

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

Parameters

Returns

ControllerActionEndpointConventionBuilder

An ControllerActionEndpointConventionBuilder for endpoints associated with controller actions.

Applies to