Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

Configuration.Exists

Method
📦 Aspire.Hosting v17.0.0
type Configuration interface {
// ... omitted for brevity
Exists(key string) (bool, error)
}

Signature

methodExists
Checks whether a configuration section exists.
Exists(key string) (bool, error)
keystringThe configuration key.
(bool, error)

true when the section exists; otherwise, false.

Returns (bool, error).

Defined on

This method is defined on the following type: