Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

GetConfigValue

Method
📦 Aspire.Hosting v17.0.0
func (Configuration) GetConfigValue(key string) (*string, error)

Signature

methodGetConfigValue
Gets a configuration value by key.
GetConfigValue(key string) (*string, error)
keystringThe configuration key (e.g., "ConnectionStrings:Default").
(*string, error)

The configuration value, or null if not found.

Returns (*string, error).

Applies to

This method applies to the following types: