ConfigurationExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides extension methods for configuration classes.
public ref class ConfigurationExtensions abstract sealed
public static class ConfigurationExtensions
type ConfigurationExtensions = class
Public Module ConfigurationExtensions
- Inheritance
-
ConfigurationExtensions
Methods
Add<TSource>(IConfigurationBuilder, Action<TSource>) |
Adds a new configuration source. |
AsEnumerable(IConfiguration, Boolean) |
Get the enumeration of key value pairs within the IConfiguration |
AsEnumerable(IConfiguration) |
Get the enumeration of key value pairs within the IConfiguration |
Exists(IConfigurationSection) |
Determines whether the section has a Value or has children. |
GetConnectionString(IConfiguration, String) |
Gets the specified connection string from the specified configuration.
Shorthand for |
GetRequiredSection(IConfiguration, String) |
Gets a configuration subsection with the specified key. |