Bagikan melalui


ControllerEndpointRouteBuilderExtensions.MapDefaultControllerRoute Metode

Definisi

Menambahkan titik akhir untuk tindakan pengontrol ke IEndpointRouteBuilder dan menambahkan rute {controller=Home}/{action=Index}/{id?}default .

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::ControllerActionEndpointConventionBuilder ^ MapDefaultControllerRoute(Microsoft::AspNetCore::Routing::IEndpointRouteBuilder ^ endpoints);
public static Microsoft.AspNetCore.Builder.ControllerActionEndpointConventionBuilder MapDefaultControllerRoute (this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints);
static member MapDefaultControllerRoute : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder -> Microsoft.AspNetCore.Builder.ControllerActionEndpointConventionBuilder
<Extension()>
Public Function MapDefaultControllerRoute (endpoints As IEndpointRouteBuilder) As ControllerActionEndpointConventionBuilder

Parameter

Mengembalikan

ControllerActionEndpointConventionBuilder untuk titik akhir yang terkait dengan tindakan pengontrol untuk rute ini.

Berlaku untuk