Condividi tramite


WebHostBuilderExtensions.UseStaticWebAssets(IWebHostBuilder) Metodo

Definizione

Configura l'oggetto per l'uso WebRootFileProvider di asset Web statici definiti da progetti e pacchetti a cui si fa riferimento.

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

Parametri

builder
IWebHostBuilder

Oggetto IWebHostBuilder.

Restituisce

Oggetto IWebHostBuilder.

Si applica a