SpaStaticFilesExtensions.UseSpaStaticFiles 方法

定义

重载

UseSpaStaticFiles(IApplicationBuilder)

将应用程序配置为为单页应用程序 (SPA) 提供静态文件。 将使用已注册 ISpaStaticFileProvider 的服务查找文件。

UseSpaStaticFiles(IApplicationBuilder, StaticFileOptions)

将应用程序配置为为单页应用程序 (SPA) 提供静态文件。 将使用已注册 ISpaStaticFileProvider 的服务查找文件。

UseSpaStaticFiles(IApplicationBuilder)

Source:
SpaStaticFilesExtensions.cs
Source:
SpaStaticFilesExtensions.cs
Source:
SpaStaticFilesExtensions.cs
Source:
SpaStaticFilesExtensions.cs
Source:
SpaStaticFilesExtensions.cs
Source:
SpaStaticFilesExtensions.cs
Source:
SpaStaticFilesExtensions.cs
Source:
SpaStaticFilesExtensions.cs
Source:
SpaStaticFilesExtensions.cs

将应用程序配置为为单页应用程序 (SPA) 提供静态文件。 将使用已注册 ISpaStaticFileProvider 的服务查找文件。

public static void UseSpaStaticFiles (this Microsoft.AspNetCore.Builder.IApplicationBuilder applicationBuilder);
static member UseSpaStaticFiles : Microsoft.AspNetCore.Builder.IApplicationBuilder -> unit
<Extension()>
Public Sub UseSpaStaticFiles (applicationBuilder As IApplicationBuilder)

参数

适用于

UseSpaStaticFiles(IApplicationBuilder, StaticFileOptions)

Source:
SpaStaticFilesExtensions.cs
Source:
SpaStaticFilesExtensions.cs
Source:
SpaStaticFilesExtensions.cs
Source:
SpaStaticFilesExtensions.cs
Source:
SpaStaticFilesExtensions.cs
Source:
SpaStaticFilesExtensions.cs
Source:
SpaStaticFilesExtensions.cs
Source:
SpaStaticFilesExtensions.cs
Source:
SpaStaticFilesExtensions.cs

将应用程序配置为为单页应用程序 (SPA) 提供静态文件。 将使用已注册 ISpaStaticFileProvider 的服务查找文件。

public static void UseSpaStaticFiles (this Microsoft.AspNetCore.Builder.IApplicationBuilder applicationBuilder, Microsoft.AspNetCore.Builder.StaticFileOptions options);
static member UseSpaStaticFiles : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Builder.StaticFileOptions -> unit
<Extension()>
Public Sub UseSpaStaticFiles (applicationBuilder As IApplicationBuilder, options As StaticFileOptions)

参数

options
StaticFileOptions

指定用于提供静态文件的选项。

适用于