MvcApplicationBuilderExtensions.UseMvcWithDefaultRoute Yöntem

Tanım

'default' adlı varsayılan yol ve şu şablonla istek yürütme işlem hattına IApplicationBuilder MVC ekler: '{controller=Home}/{action=Index}/{id?}'.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseMvcWithDefaultRoute(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseMvcWithDefaultRoute (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
static member UseMvcWithDefaultRoute : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseMvcWithDefaultRoute (app As IApplicationBuilder) As IApplicationBuilder

Parametreler

Döndürülenler

İşlem tamamlandıktan sonra bu örneğe başvuru.

Şunlara uygulanır