Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

Configuration.GetConfigValue

Method
📦 Aspire.Hosting v17.0.0
type Configuration interface {
// ... omitted for brevity
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).

Defined on

This method is defined on the following type: