Skip to content
Docs Try Aspire

IConfiguration

Interface
📦 Aspire.Hosting v13.2.0
interface IConfiguration {
exists(key: string): boolean;
getChildren(): IConfigurationSection[];
getConfigValue(key: string): string;
getConnectionString(name: string): string;
getSection(key: string): IConfigurationSection;
}

Methods

method exists
Checks whether a configuration section exists
exists(key: string): boolean
key string
boolean
method getChildren
Gets child configuration sections
getChildren(): IConfigurationSection[]
IConfigurationSection[]
Gets a configuration value by key
getConfigValue(key: string): string
key string
string
Gets a connection string by name
getConnectionString(name: string): string
name string
string
method getSection
Gets a configuration section by key
getSection(key: string): IConfigurationSection
key string
IConfigurationSection