EnvironmentVariablesExtensions.AddEnvironmentVariables Método

Definição

Sobrecargas

AddEnvironmentVariables(IConfigurationBuilder)

Adiciona um IConfigurationProvider que lê valores de configuração de variáveis de ambiente.

AddEnvironmentVariables(IConfigurationBuilder, Action<EnvironmentVariablesConfigurationSource>)

Adiciona um IConfigurationProvider que lê valores de configuração de variáveis de ambiente.

AddEnvironmentVariables(IConfigurationBuilder, String)

Adiciona um IConfigurationProvider que lê valores de configuração de variáveis de ambiente com um prefixo especificado.

AddEnvironmentVariables(IConfigurationBuilder)

Origem:
EnvironmentVariablesExtensions.cs
Origem:
EnvironmentVariablesExtensions.cs
Origem:
EnvironmentVariablesExtensions.cs
Origem:
EnvironmentVariablesExtensions.cs

Adiciona um IConfigurationProvider que lê valores de configuração de variáveis de ambiente.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Configuration::IConfigurationBuilder ^ AddEnvironmentVariables(Microsoft::Extensions::Configuration::IConfigurationBuilder ^ configurationBuilder);
public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddEnvironmentVariables (this Microsoft.Extensions.Configuration.IConfigurationBuilder configurationBuilder);
static member AddEnvironmentVariables : Microsoft.Extensions.Configuration.IConfigurationBuilder -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function AddEnvironmentVariables (configurationBuilder As IConfigurationBuilder) As IConfigurationBuilder

Parâmetros

configurationBuilder
IConfigurationBuilder

O IConfigurationBuilder ao qual adicionar.

Retornos

O IConfigurationBuilder.

Aplica-se a

AddEnvironmentVariables(IConfigurationBuilder, Action<EnvironmentVariablesConfigurationSource>)

Origem:
EnvironmentVariablesExtensions.cs
Origem:
EnvironmentVariablesExtensions.cs
Origem:
EnvironmentVariablesExtensions.cs
Origem:
EnvironmentVariablesExtensions.cs

Adiciona um IConfigurationProvider que lê valores de configuração de variáveis de ambiente.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Configuration::IConfigurationBuilder ^ AddEnvironmentVariables(Microsoft::Extensions::Configuration::IConfigurationBuilder ^ builder, Action<Microsoft::Extensions::Configuration::EnvironmentVariables::EnvironmentVariablesConfigurationSource ^> ^ configureSource);
public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddEnvironmentVariables (this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, Action<Microsoft.Extensions.Configuration.EnvironmentVariables.EnvironmentVariablesConfigurationSource>? configureSource);
static member AddEnvironmentVariables : Microsoft.Extensions.Configuration.IConfigurationBuilder * Action<Microsoft.Extensions.Configuration.EnvironmentVariables.EnvironmentVariablesConfigurationSource> -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function AddEnvironmentVariables (builder As IConfigurationBuilder, configureSource As Action(Of EnvironmentVariablesConfigurationSource)) As IConfigurationBuilder

Parâmetros

builder
IConfigurationBuilder

O IConfigurationBuilder ao qual adicionar.

configureSource
Action<EnvironmentVariablesConfigurationSource>

Configura a origem.

Retornos

O IConfigurationBuilder.

Aplica-se a

AddEnvironmentVariables(IConfigurationBuilder, String)

Origem:
EnvironmentVariablesExtensions.cs
Origem:
EnvironmentVariablesExtensions.cs
Origem:
EnvironmentVariablesExtensions.cs
Origem:
EnvironmentVariablesExtensions.cs

Adiciona um IConfigurationProvider que lê valores de configuração de variáveis de ambiente com um prefixo especificado.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Configuration::IConfigurationBuilder ^ AddEnvironmentVariables(Microsoft::Extensions::Configuration::IConfigurationBuilder ^ configurationBuilder, System::String ^ prefix);
public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddEnvironmentVariables (this Microsoft.Extensions.Configuration.IConfigurationBuilder configurationBuilder, string? prefix);
static member AddEnvironmentVariables : Microsoft.Extensions.Configuration.IConfigurationBuilder * string -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function AddEnvironmentVariables (configurationBuilder As IConfigurationBuilder, prefix As String) As IConfigurationBuilder

Parâmetros

configurationBuilder
IConfigurationBuilder

O IConfigurationBuilder ao qual adicionar.

prefix
String

O prefixo com o qual os nomes de variáveis de ambiente devem começar. O prefixo será removido dos nomes da variável de ambiente.

Retornos

O IConfigurationBuilder.

Aplica-se a