ComponentsWebAssemblyApplicationBuilderExtensions.UseBlazorFrameworkFiles 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
UseBlazorFrameworkFiles(IApplicationBuilder) |
将应用程序配置为从根路径“/”提供 Blazor WebAssembly 框架文件。 |
UseBlazorFrameworkFiles(IApplicationBuilder, PathString) |
将应用程序配置为从路径 |
UseBlazorFrameworkFiles(IApplicationBuilder)
将应用程序配置为从根路径“/”提供 Blazor WebAssembly 框架文件。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseBlazorFrameworkFiles(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ applicationBuilder);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseBlazorFrameworkFiles (this Microsoft.AspNetCore.Builder.IApplicationBuilder applicationBuilder);
static member UseBlazorFrameworkFiles : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseBlazorFrameworkFiles (applicationBuilder As IApplicationBuilder) As IApplicationBuilder
参数
- applicationBuilder
- IApplicationBuilder
返回
适用于
UseBlazorFrameworkFiles(IApplicationBuilder, PathString)
将应用程序配置为从路径 pathPrefix
提供 Blazor WebAssembly 框架文件。 此路径必须对应于引用的 Blazor WebAssembly 应用程序项目。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseBlazorFrameworkFiles(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ builder, Microsoft::AspNetCore::Http::PathString pathPrefix);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseBlazorFrameworkFiles (this Microsoft.AspNetCore.Builder.IApplicationBuilder builder, Microsoft.AspNetCore.Http.PathString pathPrefix);
static member UseBlazorFrameworkFiles : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Http.PathString -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseBlazorFrameworkFiles (builder As IApplicationBuilder, pathPrefix As PathString) As IApplicationBuilder
参数
- builder
- IApplicationBuilder
- pathPrefix
- PathString
指示 PathString Blazor WebAssembly 应用程序的前缀的 。