Condividi tramite


HostingAbstractionsWebHostBuilderExtensions.UseConfiguration Metodo

Definizione

Usare le impostazioni di configurazione specificate nell'host Web.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ UseConfiguration(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder, Microsoft::Extensions::Configuration::IConfiguration ^ configuration);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseConfiguration (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Microsoft.Extensions.Configuration.IConfiguration configuration);
static member UseConfiguration : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Microsoft.Extensions.Configuration.IConfiguration -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseConfiguration (hostBuilder As IWebHostBuilder, configuration As IConfiguration) As IWebHostBuilder

Parametri

hostBuilder
IWebHostBuilder

Oggetto IWebHostBuilder da configurare.

configuration
IConfiguration

Oggetto IConfiguration contenente le impostazioni da utilizzare.

Restituisce

Oggetto IWebHostBuilder.

Si applica a