EnvironmentVariablesExtensions.AddEnvironmentVariables Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Overload
AddEnvironmentVariables(IConfigurationBuilder) |
IConfigurationProvider Menambahkan yang membaca nilai konfigurasi dari variabel lingkungan. |
AddEnvironmentVariables(IConfigurationBuilder, Action<EnvironmentVariablesConfigurationSource>) |
IConfigurationProvider Menambahkan yang membaca nilai konfigurasi dari variabel lingkungan. |
AddEnvironmentVariables(IConfigurationBuilder, String) |
IConfigurationProvider Menambahkan yang membaca nilai konfigurasi dari variabel lingkungan dengan awalan tertentu. |
AddEnvironmentVariables(IConfigurationBuilder)
IConfigurationProvider Menambahkan yang membaca nilai konfigurasi dari variabel lingkungan.
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
Parameter
- configurationBuilder
- IConfigurationBuilder
yang IConfigurationBuilder akan ditambahkan ke.
Mengembalikan
Berlaku untuk
AddEnvironmentVariables(IConfigurationBuilder, Action<EnvironmentVariablesConfigurationSource>)
IConfigurationProvider Menambahkan yang membaca nilai konfigurasi dari variabel lingkungan.
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
Parameter
- builder
- IConfigurationBuilder
yang IConfigurationBuilder akan ditambahkan ke.
- configureSource
- Action<EnvironmentVariablesConfigurationSource>
Mengonfigurasi sumber.
Mengembalikan
Berlaku untuk
AddEnvironmentVariables(IConfigurationBuilder, String)
IConfigurationProvider Menambahkan yang membaca nilai konfigurasi dari variabel lingkungan dengan awalan tertentu.
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
Parameter
- configurationBuilder
- IConfigurationBuilder
yang IConfigurationBuilder akan ditambahkan ke.
- prefix
- String
Awalan yang harus dimulai dengan nama variabel lingkungan. Awalan akan dihapus dari nama variabel lingkungan.