EnvironmentVariablesExtensions 類別

定義

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

方法

AddEnvironmentVariables(IConfigurationBuilder)

新增從環境變數讀取組態值的 IConfigurationProviderAdds an IConfigurationProvider that reads configuration values from environment variables.

AddEnvironmentVariables(IConfigurationBuilder, Action<EnvironmentVariablesConfigurationSource>)

新增從環境變數讀取組態值的 IConfigurationProviderAdds an IConfigurationProvider that reads configuration values from environment variables.

AddEnvironmentVariables(IConfigurationBuilder, String)

新增 IConfigurationProvider 來從具有指定前置詞的環境變數中讀取組態值。Adds an IConfigurationProvider that reads configuration values from environment variables with a specified prefix.

適用於