Bagikan melalui


EnvironmentVariablesExtensions.AddEnvironmentVariables Metode

Definisi

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)

Sumber:
EnvironmentVariablesExtensions.cs
Sumber:
EnvironmentVariablesExtensions.cs
Sumber:
EnvironmentVariablesExtensions.cs
Sumber:
EnvironmentVariablesExtensions.cs

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

IConfigurationBuilder.

Berlaku untuk

AddEnvironmentVariables(IConfigurationBuilder, Action<EnvironmentVariablesConfigurationSource>)

Sumber:
EnvironmentVariablesExtensions.cs
Sumber:
EnvironmentVariablesExtensions.cs
Sumber:
EnvironmentVariablesExtensions.cs
Sumber:
EnvironmentVariablesExtensions.cs

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

IConfigurationBuilder.

Berlaku untuk

AddEnvironmentVariables(IConfigurationBuilder, String)

Sumber:
EnvironmentVariablesExtensions.cs
Sumber:
EnvironmentVariablesExtensions.cs
Sumber:
EnvironmentVariablesExtensions.cs
Sumber:
EnvironmentVariablesExtensions.cs

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.

Mengembalikan

IConfigurationBuilder.

Berlaku untuk