ControllerEndpointRouteBuilderExtensions.MapControllers 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在不指定任何路由的情况下,将控制器操作的终结点添加到 。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
参数
- endpoints
- IEndpointRouteBuilder
返回
ControllerActionEndpointConventionBuilder与控制器操作关联的终结点的 。