Bagikan melalui


WebHostBuilderExtensions.UseStaticWebAssets(IWebHostBuilder) Metode

Definisi

WebRootFileProvider Mengonfigurasi untuk menggunakan aset web statis yang ditentukan oleh proyek dan paket yang dirujuk.

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

Parameter

Mengembalikan

IWebHostBuilder.

Berlaku untuk