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

适用于