TackleMcClean 🏅
03/21/2024, 1:42 PMIUmbracoBuilder
to do this:
var section = builder.Config.GetSection("PrepopulateUsers")
This returns an IConfigurationSection
and I need to check its subsections as in the image (those 5 sub sections). How can I get info on those sections? The IConfigurationSection
has no methods to get those sections from what I can see?
https://cdn.discordapp.com/attachments/1220366835116019732/1220366835250368542/image.png?ex=660eae2e&is=65fc392e&hm=b63e8ec933d75b328d64bbea97e32aac900b8429e079b23fb9a0f08a56528aae&TackleMcClean 🏅
03/21/2024, 1:43 PMRachel D
03/21/2024, 1:45 PMIConfigurationSection
should have its own .GetSection
method, since it inherits from `IConfiguration`: https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.configuration.iconfigurationsection?view=dotnet-plat-ext-8.0#methodshuwred
03/21/2024, 2:57 PMTackleMcClean 🏅
03/21/2024, 3:08 PMGetChildren
and checking Any
on it for existing element 👍