IConfigurationSection Interface
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.
Represents a section of application configuration values.
public interface class IConfigurationSection : Microsoft::Extensions::Configuration::IConfiguration
public interface IConfigurationSection : Microsoft.Extensions.Configuration.IConfiguration
type IConfigurationSection = interface
interface IConfiguration
Public Interface IConfigurationSection
Implements IConfiguration
- Derived
- Implements
Item[String] |
Gets or sets a configuration value. (Inherited from IConfiguration) |
Key |
Gets the key this section occupies in its parent. |
Path |
Gets the full path to this section within the IConfiguration. |
Value |
Gets or sets the section value. |
Get |
Gets the immediate descendant configuration sub-sections. (Inherited from IConfiguration) |
Get |
Returns a IChangeToken that can be used to observe when this configuration is reloaded. (Inherited from IConfiguration) |
Get |
Gets a configuration sub-section with the specified key. (Inherited from IConfiguration) |
Bind(IConfiguration, Object, Action<Binder |
Attempts to bind the given object instance to configuration values by matching property names against configuration keys recursively. |
Bind(IConfiguration, Object) |
Attempts to bind the given object instance to configuration values by matching property names against configuration keys recursively. |
Bind(IConfiguration, String, Object) |
Attempts to bind the given object instance to the configuration section specified by the key by matching property names against configuration keys recursively. |
Get(IConfiguration, Type, Action<Binder |
Attempts to bind the configuration instance to a new instance of type T. If this configuration section has a value, that will be used. Otherwise binding by matching property names against configuration keys recursively. |
Get(IConfiguration, Type) |
Attempts to bind the configuration instance to a new instance of type T. If this configuration section has a value, that will be used. Otherwise binding by matching property names against configuration keys recursively. |
Get<T>(IConfiguration, Action<Binder |
Attempts to bind the configuration instance to a new instance of type T. If this configuration section has a value, that will be used. Otherwise binding by matching property names against configuration keys recursively. |
Get<T>(IConfiguration) |
Attempts to bind the configuration instance to a new instance of type T. If this configuration section has a value, that will be used. Otherwise binding by matching property names against configuration keys recursively. |
Get |
Extracts the value with the specified key and converts it to the specified type. |
Get |
Extracts the value with the specified key and converts it to the specified type. |
Get |
Extracts the value with the specified key and converts it to type T. |
Get |
Extracts the value with the specified key and converts it to type T. |
As |
Get the enumeration of key value pairs within the IConfiguration |
As |
Get the enumeration of key value pairs within the IConfiguration |
Exists(IConfiguration |
Determines whether the section has a Value or has children. |
Get |
Gets the specified connection string from the specified configuration.
Shorthand for |
Get |
Gets a configuration subsection with the specified key. |
Produit | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires :