Condividi tramite


EnvironmentVariablesExtensions.AddEnvironmentVariables Metodo

Definizione

Overload

AddEnvironmentVariables(IConfigurationBuilder)

Aggiunge un oggetto IConfigurationProvider che legge i valori di configurazione dalle variabili di ambiente.

AddEnvironmentVariables(IConfigurationBuilder, Action<EnvironmentVariablesConfigurationSource>)

Aggiunge un oggetto IConfigurationProvider che legge i valori di configurazione dalle variabili di ambiente.

AddEnvironmentVariables(IConfigurationBuilder, String)

Aggiunge un oggetto IConfigurationProvider che legge i valori di configurazione dalle variabili di ambiente con un prefisso specificato.

AddEnvironmentVariables(IConfigurationBuilder)

Origine:
EnvironmentVariablesExtensions.cs
Origine:
EnvironmentVariablesExtensions.cs
Origine:
EnvironmentVariablesExtensions.cs
Origine:
EnvironmentVariablesExtensions.cs

Aggiunge un oggetto IConfigurationProvider che legge i valori di configurazione dalle variabili di 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

Parametri

configurationBuilder
IConfigurationBuilder

Oggetto IConfigurationBuilder in cui effettuare l'aggiunta.

Restituisce

Oggetto IConfigurationBuilder.

Si applica a

AddEnvironmentVariables(IConfigurationBuilder, Action<EnvironmentVariablesConfigurationSource>)

Origine:
EnvironmentVariablesExtensions.cs
Origine:
EnvironmentVariablesExtensions.cs
Origine:
EnvironmentVariablesExtensions.cs
Origine:
EnvironmentVariablesExtensions.cs

Aggiunge un oggetto IConfigurationProvider che legge i valori di configurazione dalle variabili di 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

Parametri

builder
IConfigurationBuilder

Oggetto IConfigurationBuilder in cui effettuare l'aggiunta.

configureSource
Action<EnvironmentVariablesConfigurationSource>

Configura l'origine.

Restituisce

Oggetto IConfigurationBuilder.

Si applica a

AddEnvironmentVariables(IConfigurationBuilder, String)

Origine:
EnvironmentVariablesExtensions.cs
Origine:
EnvironmentVariablesExtensions.cs
Origine:
EnvironmentVariablesExtensions.cs
Origine:
EnvironmentVariablesExtensions.cs

Aggiunge un oggetto IConfigurationProvider che legge i valori di configurazione dalle variabili di ambiente con un prefisso specificato.

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

Parametri

configurationBuilder
IConfigurationBuilder

Oggetto IConfigurationBuilder in cui effettuare l'aggiunta.

prefix
String

Prefisso con cui devono iniziare i nomi delle variabili di ambiente. Il prefisso verrà rimosso dai nomi delle variabili di ambiente.

Restituisce

Oggetto IConfigurationBuilder.

Si applica a