共用方式為


WebHostBuilderExtensions.UseStaticWebAssets(IWebHostBuilder) 方法

定義

WebRootFileProvider 設定為使用參考專案和套件所定義的靜態 Web 資產。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ UseStaticWebAssets(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ builder);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseStaticWebAssets (this Microsoft.AspNetCore.Hosting.IWebHostBuilder builder);
static member UseStaticWebAssets : Microsoft.AspNetCore.Hosting.IWebHostBuilder -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseStaticWebAssets (builder As IWebHostBuilder) As IWebHostBuilder

參數

傳回

IWebHostBuilder

適用於