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 應用程式的前置詞。