EnvironmentVariablesExtensions 类

定义

public ref class EnvironmentVariablesExtensions abstract sealed
public static class EnvironmentVariablesExtensions
type EnvironmentVariablesExtensions = class
Public Module EnvironmentVariablesExtensions
继承
EnvironmentVariablesExtensions

注解

有关详细信息和示例,请参阅 环境变量配置提供程序

方法

AddEnvironmentVariables(IConfigurationBuilder)

添加从环境变量读取配置值的 IConfigurationProvider

AddEnvironmentVariables(IConfigurationBuilder, Action<EnvironmentVariablesConfigurationSource>)

添加从环境变量读取配置值的 IConfigurationProvider

AddEnvironmentVariables(IConfigurationBuilder, String)

添加从具有指定前缀的环境变量读取配置值的 IConfigurationProvider

适用于