ControllerEndpointRouteBuilderExtensions.MapControllers 方法

定義

將控制器動作的端點新增至 , IEndpointRouteBuilder 而不指定任何路由。

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

參數

傳回

ControllerActionEndpointConventionBuilder 用於與控制器動作相關聯的端點。

適用於