EnvironmentVariablesExtensions Klasse

Definition

Stellt Erweiterungsmethoden für die Registrierung EnvironmentVariablesConfigurationProvider bei IConfigurationBuilder.

public ref class EnvironmentVariablesExtensions abstract sealed
public static class EnvironmentVariablesExtensions
type EnvironmentVariablesExtensions = class
Public Module EnvironmentVariablesExtensions
Vererbung
EnvironmentVariablesExtensions

Hinweise

Weitere Informationen und Beispiele finden Sie unter Umgebungsvariablenkonfigurationsanbieter.

Methoden

Name Beschreibung
AddEnvironmentVariables(IConfigurationBuilder, Action<EnvironmentVariablesConfigurationSource>)

Fügt einen IConfigurationProvider Wert hinzu, der Konfigurationswerte aus Umgebungsvariablen liest.

AddEnvironmentVariables(IConfigurationBuilder, String)

Fügt einen IConfigurationProvider Wert hinzu, der Konfigurationswerte aus Umgebungsvariablen mit einem angegebenen Präfix liest.

AddEnvironmentVariables(IConfigurationBuilder)

Fügt einen IConfigurationProvider Wert hinzu, der Konfigurationswerte aus Umgebungsvariablen liest.

Gilt für: