Bagikan melalui


MvcApplicationBuilderExtensions.UseMvc Metode

Definisi

Overload

UseMvc(IApplicationBuilder)

Menambahkan MVC ke IApplicationBuilder alur eksekusi permintaan.

UseMvc(IApplicationBuilder, Action<IRouteBuilder>)

Menambahkan MVC ke IApplicationBuilder alur eksekusi permintaan.

UseMvc(IApplicationBuilder)

Sumber:
MvcApplicationBuilderExtensions.cs
Sumber:
MvcApplicationBuilderExtensions.cs
Sumber:
MvcApplicationBuilderExtensions.cs

Menambahkan MVC ke IApplicationBuilder alur eksekusi permintaan.

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

Parameter

Mengembalikan

Referensi ke instans ini setelah operasi selesai.

Keterangan

Metode ini hanya mendukung perutean atribut. Untuk menambahkan rute konvensional, gunakan UseMvc(IApplicationBuilder, Action<IRouteBuilder>).

Berlaku untuk

UseMvc(IApplicationBuilder, Action<IRouteBuilder>)

Sumber:
MvcApplicationBuilderExtensions.cs
Sumber:
MvcApplicationBuilderExtensions.cs
Sumber:
MvcApplicationBuilderExtensions.cs

Menambahkan MVC ke IApplicationBuilder alur eksekusi permintaan.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseMvc(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Action<Microsoft::AspNetCore::Routing::IRouteBuilder ^> ^ configureRoutes);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseMvc (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Action<Microsoft.AspNetCore.Routing.IRouteBuilder> configureRoutes);
static member UseMvc : Microsoft.AspNetCore.Builder.IApplicationBuilder * Action<Microsoft.AspNetCore.Routing.IRouteBuilder> -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseMvc (app As IApplicationBuilder, configureRoutes As Action(Of IRouteBuilder)) As IApplicationBuilder

Parameter

configureRoutes
Action<IRouteBuilder>

Panggilan balik untuk mengonfigurasi rute MVC.

Mengembalikan

Referensi ke instans ini setelah operasi selesai.

Berlaku untuk