HostingHostBuilderExtensions.ConfigureAppConfiguration(IHostBuilder, Action<IConfigurationBuilder>) Método
Definição
Define a configuração para o restante do processo de build e do aplicativo.Sets up the configuration for the remainder of the build process and application. Isso pode ser chamado várias vezes e os resultados serão aditivos.This can be called multiple times and the results will be additive. Os resultados estarão disponíveis em Configuration para operações subsequentes, bem como em Services.The results will be available at Configuration for subsequent operations, as well as in Services.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Hosting::IHostBuilder ^ ConfigureAppConfiguration(Microsoft::Extensions::Hosting::IHostBuilder ^ hostBuilder, Action<Microsoft::Extensions::Configuration::IConfigurationBuilder ^> ^ configureDelegate);
public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureAppConfiguration (this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, Action<Microsoft.Extensions.Configuration.IConfigurationBuilder> configureDelegate);
static member ConfigureAppConfiguration : Microsoft.Extensions.Hosting.IHostBuilder * Action<Microsoft.Extensions.Configuration.IConfigurationBuilder> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function ConfigureAppConfiguration (hostBuilder As IHostBuilder, configureDelegate As Action(Of IConfigurationBuilder)) As IHostBuilder
Parâmetros
- hostBuilder
- IHostBuilder
O IHostBuilder a ser configurado.The IHostBuilder to configure.
- configureDelegate
- Action<IConfigurationBuilder>
O delegado para configurar o IConfigurationBuilder que será usado para construir o IConfiguration para o host.The delegate for configuring the IConfigurationBuilder that will be used to construct the IConfiguration for the host.
Retornos
A mesma instância do IHostBuilder para encadeamento.The same instance of the IHostBuilder for chaining.