Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

Exists

Method
📦 Aspire.Hosting v17.0.0
func (Configuration) 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).

Applies to

This method applies to the following types: