Compartir a través de


EnvironmentVariablesExtensions.AddEnvironmentVariables Método

Definición

Sobrecargas

AddEnvironmentVariables(IConfigurationBuilder)

Agrega una instancia de IConfigurationProvider que lee los valores de configuración de las variables de entorno.

AddEnvironmentVariables(IConfigurationBuilder, Action<EnvironmentVariablesConfigurationSource>)

Agrega una instancia de IConfigurationProvider que lee los valores de configuración de las variables de entorno.

AddEnvironmentVariables(IConfigurationBuilder, String)

Agrega una instancia de IConfigurationProvider que lee los valores de configuración de las variables de entorno con un prefijo especificado.

AddEnvironmentVariables(IConfigurationBuilder)

Source:
EnvironmentVariablesExtensions.cs
Source:
EnvironmentVariablesExtensions.cs
Source:
EnvironmentVariablesExtensions.cs
Source:
EnvironmentVariablesExtensions.cs

Agrega una instancia de IConfigurationProvider que lee los valores de configuración de las variables de entorno.

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

El objeto IConfigurationBuilder al que se va a agregar.

Devoluciones

El parámetro de cadena de consulta IConfigurationBuilder.

Se aplica a

AddEnvironmentVariables(IConfigurationBuilder, Action<EnvironmentVariablesConfigurationSource>)

Source:
EnvironmentVariablesExtensions.cs
Source:
EnvironmentVariablesExtensions.cs
Source:
EnvironmentVariablesExtensions.cs
Source:
EnvironmentVariablesExtensions.cs

Agrega una instancia de IConfigurationProvider que lee los valores de configuración de las variables de entorno.

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

El objeto IConfigurationBuilder al que se va a agregar.

configureSource
Action<EnvironmentVariablesConfigurationSource>

Configura el origen.

Devoluciones

El parámetro de cadena de consulta IConfigurationBuilder.

Se aplica a

AddEnvironmentVariables(IConfigurationBuilder, String)

Source:
EnvironmentVariablesExtensions.cs
Source:
EnvironmentVariablesExtensions.cs
Source:
EnvironmentVariablesExtensions.cs
Source:
EnvironmentVariablesExtensions.cs

Agrega una instancia de IConfigurationProvider que lee los valores de configuración de las variables de entorno con un prefijo 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

El objeto IConfigurationBuilder al que se va a agregar.

prefix
String

El prefijo con el que deben comenzar los nombres de las variables de entorno. El prefijo se quitará de los nombres de las variables de entorno.

Devoluciones

El parámetro de cadena de consulta IConfigurationBuilder.

Se aplica a