How to know if a Key exists on IConfiguration

Viewed 198

I have

IConfiguration cfg;
string keyName;

Will cfg.GetSection(keyName) tell me whether the key exists inside cfg ?

I just need to know if the key (keyName) exists.
I don't care about its value.

0 Answers
Related