Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

GetSection

Method
📦 Aspire.Hosting v17.0.0
func (Configuration) GetSection(key string) ConfigurationSection

Signature

methodGetSection
Gets a configuration section by key.
GetSection(key string) ConfigurationSection
keystringThe configuration key.
ConfigurationSection

The configuration section handle.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: