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.
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. |
AddUserSecrets(IConfigurationBuilder) |
Adds the user secrets configuration source. Searches the assembly from GetEntryAssembly() for an instance of UserSecretsIdAttribute. |
AddUserSecrets(IConfigurationBuilder, Assembly) |
Adds the user secrets configuration source. |
AddUserSecrets(IConfigurationBuilder, String) |
Adds the user secrets configuration source with specified secrets ID. |
AddUserSecrets<T>(IConfigurationBuilder) |
Adds the user secrets configuration source. Searches the assembly that contains type |
AsEnumerable(IConfiguration) |
Get the enumeration of key-value pairs within the IConfiguration. |
AsEnumerable(IConfiguration, Boolean) |
Gets the enumeration of key-value pairs within the IConfiguration. |
Exists(IConfigurationSection) |
Determines whether the section has a Value or has children. |
GetConnectionString(IConfiguration, String) |
Retrieves the value with the specified key from the |
GetRequiredSection(IConfiguration, String) |
Gets the configuration subsection that has the specified key. |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for