Bagikan melalui


ControllerEndpointRouteBuilderExtensions.MapControllers Metode

Definisi

Menambahkan titik akhir untuk tindakan pengontrol ke IEndpointRouteBuilder tanpa menentukan rute apa pun.

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

Parameter

Mengembalikan

ControllerActionEndpointConventionBuilder untuk titik akhir yang terkait dengan tindakan pengontrol.

Berlaku untuk