Udostępnij za pośrednictwem


WebHostBuilderExtensions.UseStaticWebAssets(IWebHostBuilder) Metoda

Definicja

Konfiguruje element WebRootFileProvider do używania statycznych zasobów sieci Web zdefiniowanych przez przywołyne projekty i pakiety.

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

Parametry

builder
IWebHostBuilder

Element IWebHostBuilder.

Zwraca

Element IWebHostBuilder.

Dotyczy