Udostępnij za pośrednictwem


MvcApplicationBuilderExtensions.UseMvc Metoda

Definicja

Przeciążenia

UseMvc(IApplicationBuilder)

Dodaje element MVC do potoku IApplicationBuilder wykonywania żądania.

UseMvc(IApplicationBuilder, Action<IRouteBuilder>)

Dodaje element MVC do potoku IApplicationBuilder wykonywania żądania.

UseMvc(IApplicationBuilder)

Źródło:
MvcApplicationBuilderExtensions.cs
Źródło:
MvcApplicationBuilderExtensions.cs
Źródło:
MvcApplicationBuilderExtensions.cs

Dodaje element MVC do potoku IApplicationBuilder wykonywania żądania.

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

Parametry

Zwraca

Odwołanie do tego wystąpienia po zakończeniu operacji.

Uwagi

Ta metoda obsługuje tylko routing atrybutów. Aby dodać konwencjonalne trasy, użyj polecenia UseMvc(IApplicationBuilder, Action<IRouteBuilder>).

Dotyczy

UseMvc(IApplicationBuilder, Action<IRouteBuilder>)

Źródło:
MvcApplicationBuilderExtensions.cs
Źródło:
MvcApplicationBuilderExtensions.cs
Źródło:
MvcApplicationBuilderExtensions.cs

Dodaje element MVC do potoku IApplicationBuilder wykonywania żądania.

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

Parametry

configureRoutes
Action<IRouteBuilder>

Wywołanie zwrotne do konfigurowania tras MVC.

Zwraca

Odwołanie do tego wystąpienia po zakończeniu operacji.

Dotyczy