Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
SpaApplicationBuilderExtensions.UseSpa Method
Definition
- Namespace:
- Microsoft.AspNetCore.Builder
- Assembly:
- Microsoft.AspNetCore.SpaServices.Extensions.dll
- Package:
- Microsoft.AspNetCore.SpaServices.Extensions v10.0.0
- Package:
- Microsoft.AspNetCore.SpaServices.Extensions v11.0.0-preview.4.26230.115
- Package:
- Microsoft.AspNetCore.SpaServices.Extensions v2.1.0
- Package:
- Microsoft.AspNetCore.SpaServices.Extensions v2.2.0
- Package:
- Microsoft.AspNetCore.SpaServices.Extensions v3.0.3
- Package:
- Microsoft.AspNetCore.SpaServices.Extensions v3.1.18
- Package:
- Microsoft.AspNetCore.SpaServices.Extensions v5.0.9
- Package:
- Microsoft.AspNetCore.SpaServices.Extensions v6.0.6
- Package:
- Microsoft.AspNetCore.SpaServices.Extensions v7.0.5
- Package:
- Microsoft.AspNetCore.SpaServices.Extensions v8.0.19
- Package:
- Microsoft.AspNetCore.SpaServices.Extensions v9.0.8
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Handles all requests from this point in the middleware chain by returning the default page for the Single Page Application (SPA).
This middleware should be placed late in the chain, so that other middleware for serving static files, MVC actions, etc., takes precedence.
public:
[System::Runtime::CompilerServices::Extension]
static void UseSpa(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Action<Microsoft::AspNetCore::SpaServices::ISpaBuilder ^> ^ configuration);
public static void UseSpa(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Action<Microsoft.AspNetCore.SpaServices.ISpaBuilder> configuration);
static member UseSpa : Microsoft.AspNetCore.Builder.IApplicationBuilder * Action<Microsoft.AspNetCore.SpaServices.ISpaBuilder> -> unit
<Extension()>
Public Sub UseSpa (app As IApplicationBuilder, configuration As Action(Of ISpaBuilder))
Parameters
The IApplicationBuilder.
- configuration
- Action<ISpaBuilder>
This callback will be invoked so that additional middleware can be registered within the context of this SPA.
Applies to
Feedback
Was this page helpful?
