Microsoft.Extensions.Configuration.Binder
Options class used by the .
When false (the default), the binder will only attempt to set public properties.
If true, the binder will attempt to set all non read-only properties.
When false (the default), no exceptions are thrown when trying to convert a value or when a configuration
key is found for which the provided model object does not have an appropriate property which matches the key's name.
When true, an is thrown with a description
of the error.
Static helper class that allows binding strongly typed objects to configuration values.
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.
The type of the new instance to bind.
The configuration instance to bind.
The new instance of T if successful, default(T) otherwise.
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.
The type of the new instance to bind.
The configuration instance to bind.
Configures the binder options.
The new instance of T if successful, default(T) otherwise.
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.
The configuration instance to bind.
The type of the new instance to bind.
The new instance if successful, null otherwise.
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.
The configuration instance to bind.
The type of the new instance to bind.
Configures the binder options.
The new instance if successful, null otherwise.
Attempts to bind the given object instance to the configuration section specified by the key by matching property names against configuration keys recursively.
The configuration instance to bind.
The key of the configuration section to bind.
The object to bind.
Attempts to bind the given object instance to configuration values by matching property names against configuration keys recursively.
The configuration instance to bind.
The object to bind.
Attempts to bind the given object instance to configuration values by matching property names against configuration keys recursively.
The configuration instance to bind.
The object to bind.
Configures the binder options.
Extracts the value with the specified key and converts it to type T.
The type to convert the value to.
The configuration.
The key of the configuration section's value to convert.
The converted value.
Extracts the value with the specified key and converts it to type T.
The type to convert the value to.
The configuration.
The key of the configuration section's value to convert.
The default value to use if no value is found.
The converted value.
Extracts the value with the specified key and converts it to the specified type.
The configuration.
The type to convert the value to.
The key of the configuration section's value to convert.
The converted value.
Extracts the value with the specified key and converts it to the specified type.
The configuration.
The type to convert the value to.
The key of the configuration section's value to convert.
The default value to use if no value is found.
The converted value.
Throws an if is null.
The reference type argument to validate as non-null.
The name of the parameter with which corresponds.
Throws either an or an
if the specified string is or whitespace respectively.
String to be checked for or whitespace.
The name of the parameter being checked.
The original value of .
Cannot create instance of type '{0}' because it is either abstract or an interface.
Cannot create instance of type '{0}' because one or more parameters cannot be bound to. Constructor parameters cannot be declared as in, out, or ref. Invalid parameters are: '{1}'
Cannot create instance of type '{0}' because one or more parameters cannot be bound to. Constructor parameters must have corresponding properties. Fields are not supported. Missing properties are: '{1}'
Failed to convert configuration value at '{0}' to type '{1}'.
Failed to create instance of type '{0}'.
'{0}' was set and binding has failed. The likely cause is an invalid configuration value.
'{0}' was set on the provided {1}, but the following properties were not found on the instance of {2}: {3}
Cannot create instance of type '{0}' because it is missing a public instance constructor.
Cannot create instance of type '{0}' because it has multiple public parameterized constructors.
Cannot create instance of type '{0}' because one or more parameters are unnamed.
Cannot create instance of type '{0}' because parameter '{1}' has no matching config. Each parameter in the constructor that does not have a default value must have a corresponding config entry.
Cannot create instance of type '{0}' because multidimensional arrays are not supported.