EnvironmentVariablesExtensions.AddEnvironmentVariables メソッド

定義

オーバーロード

AddEnvironmentVariables(IConfigurationBuilder)

環境変数から構成値を読み取る IConfigurationProvider を追加します。

AddEnvironmentVariables(IConfigurationBuilder, Action<EnvironmentVariablesConfigurationSource>)

環境変数から構成値を読み取る IConfigurationProvider を追加します。

AddEnvironmentVariables(IConfigurationBuilder, String)

指定のプレフィックスを持つ環境変数から構成値を読み込む IConfigurationProvider を追加します。

AddEnvironmentVariables(IConfigurationBuilder)

ソース:
EnvironmentVariablesExtensions.cs
ソース:
EnvironmentVariablesExtensions.cs
ソース:
EnvironmentVariablesExtensions.cs
ソース:
EnvironmentVariablesExtensions.cs

環境変数から構成値を読み取る IConfigurationProvider を追加します。

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

パラメーター

configurationBuilder
IConfigurationBuilder

追加先の IConfigurationBuilder

戻り値

IConfigurationBuilder

適用対象

AddEnvironmentVariables(IConfigurationBuilder, Action<EnvironmentVariablesConfigurationSource>)

ソース:
EnvironmentVariablesExtensions.cs
ソース:
EnvironmentVariablesExtensions.cs
ソース:
EnvironmentVariablesExtensions.cs
ソース:
EnvironmentVariablesExtensions.cs

環境変数から構成値を読み取る IConfigurationProvider を追加します。

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

パラメーター

configureSource
Action<EnvironmentVariablesConfigurationSource>

ソースを構成します。

戻り値

IConfigurationBuilder

適用対象

AddEnvironmentVariables(IConfigurationBuilder, String)

ソース:
EnvironmentVariablesExtensions.cs
ソース:
EnvironmentVariablesExtensions.cs
ソース:
EnvironmentVariablesExtensions.cs
ソース:
EnvironmentVariablesExtensions.cs

指定のプレフィックスを持つ環境変数から構成値を読み込む IConfigurationProvider を追加します。

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

パラメーター

configurationBuilder
IConfigurationBuilder

追加先の IConfigurationBuilder

prefix
String

環境変数名の先頭に使用する必要があるプレフィックス。 プレフィックスは環境変数名から削除されます。

戻り値

IConfigurationBuilder

適用対象