다음을 통해 공유


EnvironmentVariablesExtensions.AddEnvironmentVariables 메서드

정의

오버로드

AddEnvironmentVariables(IConfigurationBuilder)

환경 변수에서 구성 값을 읽는 IConfigurationProvider를 추가합니다.

AddEnvironmentVariables(IConfigurationBuilder, Action<EnvironmentVariablesConfigurationSource>)

환경 변수에서 구성 값을 읽는 IConfigurationProvider를 추가합니다.

AddEnvironmentVariables(IConfigurationBuilder, String)

지정된 접두사를 가진 환경 변수에서 구성 값을 읽는 IConfigurationProvider를 추가합니다.

AddEnvironmentVariables(IConfigurationBuilder)

Source:
EnvironmentVariablesExtensions.cs
Source:
EnvironmentVariablesExtensions.cs
Source:
EnvironmentVariablesExtensions.cs
Source:
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>)

Source:
EnvironmentVariablesExtensions.cs
Source:
EnvironmentVariablesExtensions.cs
Source:
EnvironmentVariablesExtensions.cs
Source:
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

매개 변수

builder
IConfigurationBuilder

추가할 IConfigurationBuilder입니다.

configureSource
Action<EnvironmentVariablesConfigurationSource>

소스를 구성합니다.

반환

IConfigurationBuilder

적용 대상

AddEnvironmentVariables(IConfigurationBuilder, String)

Source:
EnvironmentVariablesExtensions.cs
Source:
EnvironmentVariablesExtensions.cs
Source:
EnvironmentVariablesExtensions.cs
Source:
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

적용 대상