Language

EnvironmentVariablesConfigurationSource Class

Definition

Represents environment variables as an IConfigurationSource.

public ref class EnvironmentVariablesConfigurationSource : Microsoft::Extensions::Configuration::IConfigurationSource
public class EnvironmentVariablesConfigurationSource : Microsoft.Extensions.Configuration.IConfigurationSource
type EnvironmentVariablesConfigurationSource = class
    interface IConfigurationSource
Public Class EnvironmentVariablesConfigurationSource
Implements IConfigurationSource
Inheritance
EnvironmentVariablesConfigurationSource
Implements

Constructors

Name Description
EnvironmentVariablesConfigurationSource()

Initializes a new instance of EnvironmentVariablesConfigurationSource.

Properties

Name Description
ColonAndDotTransformation

A transformation that replaces triple underscores (_) with a dot (.) and double underscores () with the configuration key delimiter (:).

DefaultTransformation

The default transformation that replaces double underscores (__) with the configuration key delimiter (:).

Prefix

A prefix used to filter environment variables.

VariableNameTransformation

Gets or sets a function that transforms environment variable names. When set, this transformation replaces the default behavior of converting double underscores to the configuration key delimiter. When null, DefaultTransformation is used.

Methods

Name Description
Build(IConfigurationBuilder)

Builds the EnvironmentVariablesConfigurationProvider for this source.

Applies to