IConfiguration Interfaz
Definición
Representa un conjunto de propiedades de configuración de la aplicación de clave y valor.Represents a set of key/value application configuration properties.
public interface class IConfiguration
public interface IConfiguration
type IConfiguration = interface
Public Interface IConfiguration
- Derivado
Propiedades
| Item[String] |
Obtiene o establece un valor de configuración.Gets or sets a configuration value. |
Métodos
| GetChildren() |
Obtiene las subsecciones de configuración descendientes inmediatas.Gets the immediate descendant configuration sub-sections. |
| GetReloadToken() |
Devuelve un objeto IChangeToken que se puede usar para observar cuándo se recarga esta configuración.Returns a IChangeToken that can be used to observe when this configuration is reloaded. |
| GetSection(String) |
Obtiene una subsección de configuración con la clave especificada.Gets a configuration sub-section with the specified key. |
Métodos de extensión
| Bind(IConfiguration, Object) |
Intenta enlazar la instancia de objeto especificada con los valores de configuración mediante la comparación de los nombres de propiedad con las claves de configuración de forma recursiva.Attempts to bind the given object instance to configuration values by matching property names against configuration keys recursively. |
| Bind(IConfiguration, Object, Action<BinderOptions>) |
Intenta enlazar la instancia de objeto especificada con los valores de configuración mediante la comparación de los nombres de propiedad con las claves de configuración de forma recursiva.Attempts to bind the given object instance to configuration values by matching property names against configuration keys recursively. |
| Bind(IConfiguration, String, Object) |
Intenta enlazar la instancia de objeto especificada a la sección de configuración especificada por la clave mediante la comparación de los nombres de propiedad con las claves de configuración de forma recursiva.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) |
Intenta enlazar la instancia de configuración a una nueva instancia de tipo T. Si esta sección de configuración tiene un valor, es el que se usará.Attempts to bind the configuration instance to a new instance of type T. If this configuration section has a value, that will be used. De lo contrario, se enlaza mediante la comparación de los nombres de propiedad con las claves de configuración de forma recursiva.Otherwise binding by matching property names against configuration keys recursively. |
| Get(IConfiguration, Type, Action<BinderOptions>) |
Intenta enlazar la instancia de configuración a una nueva instancia de tipo T. Si esta sección de configuración tiene un valor, es el que se usará.Attempts to bind the configuration instance to a new instance of type T. If this configuration section has a value, that will be used. De lo contrario, se enlaza mediante la comparación de los nombres de propiedad con las claves de configuración de forma recursiva.Otherwise binding by matching property names against configuration keys recursively. |
| Get<T>(IConfiguration) |
Intenta enlazar la instancia de configuración a una nueva instancia de tipo T. Si esta sección de configuración tiene un valor, es el que se usará.Attempts to bind the configuration instance to a new instance of type T. If this configuration section has a value, that will be used. De lo contrario, se enlaza mediante la comparación de los nombres de propiedad con las claves de configuración de forma recursiva.Otherwise binding by matching property names against configuration keys recursively. |
| Get<T>(IConfiguration, Action<BinderOptions>) |
Intenta enlazar la instancia de configuración a una nueva instancia de tipo T. Si esta sección de configuración tiene un valor, es el que se usará.Attempts to bind the configuration instance to a new instance of type T. If this configuration section has a value, that will be used. De lo contrario, se enlaza mediante la comparación de los nombres de propiedad con las claves de configuración de forma recursiva.Otherwise binding by matching property names against configuration keys recursively. |
| GetValue(IConfiguration, Type, String) |
Extrae el valor con la clave especificada y lo convierte al tipo especificado.Extracts the value with the specified key and converts it to the specified type. |
| GetValue(IConfiguration, Type, String, Object) |
Extrae el valor con la clave especificada y lo convierte al tipo especificado.Extracts the value with the specified key and converts it to the specified type. |
| GetValue<T>(IConfiguration, String) |
Extrae el valor con la clave especificada y lo convierte al tipo T.Extracts the value with the specified key and converts it to type T. |
| GetValue<T>(IConfiguration, String, T) |
Extrae el valor con la clave especificada y lo convierte al tipo T.Extracts the value with the specified key and converts it to type T. |
| AsEnumerable(IConfiguration) |
Obtiene la enumeración de pares clave-valor en IConfiguration.Get the enumeration of key value pairs within the IConfiguration |
| AsEnumerable(IConfiguration, Boolean) |
Obtiene la enumeración de pares clave-valor en IConfiguration.Get the enumeration of key value pairs within the IConfiguration |
| GetConnectionString(IConfiguration, String) |
Abreviatura para GetSection("ConnectionStrings")[nombre].Shorthand for GetSection("ConnectionStrings")[name]. |