ConfigurationBinder.Bind ConfigurationBinder.Bind ConfigurationBinder.Bind Method

Definition

Overloads

Bind(IConfiguration, Object) Bind(IConfiguration, Object) Bind(IConfiguration, Object)

Attempts to bind the given object instance to configuration values by matching property names against configuration keys recursively.

Bind(IConfiguration, Object, Action<BinderOptions>) Bind(IConfiguration, Object, Action<BinderOptions>) Bind(IConfiguration, Object, Action<BinderOptions>)

Attempts to bind the given object instance to configuration values by matching property names against configuration keys recursively.

Bind(IConfiguration, String, Object) Bind(IConfiguration, String, Object) 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.

Bind(IConfiguration, Object) Bind(IConfiguration, Object) Bind(IConfiguration, Object)

Attempts to bind the given object instance to configuration values by matching property names against configuration keys recursively.

public static void Bind (this Microsoft.Extensions.Configuration.IConfiguration configuration, object instance);
static member Bind : Microsoft.Extensions.Configuration.IConfiguration * obj -> unit
<Extension()>
Public Sub Bind (configuration As IConfiguration, instance As Object)
Parameters
configuration
IConfiguration IConfiguration IConfiguration

The configuration instance to bind.

instance
Object Object Object

The object to bind.

Bind(IConfiguration, Object, Action<BinderOptions>) Bind(IConfiguration, Object, Action<BinderOptions>) Bind(IConfiguration, Object, Action<BinderOptions>)

Attempts to bind the given object instance to configuration values by matching property names against configuration keys recursively.

public static void Bind (this Microsoft.Extensions.Configuration.IConfiguration configuration, object instance, Action<Microsoft.Extensions.Configuration.BinderOptions> configureOptions);
static member Bind : Microsoft.Extensions.Configuration.IConfiguration * obj * Action<Microsoft.Extensions.Configuration.BinderOptions> -> unit
<Extension()>
Public Sub Bind (configuration As IConfiguration, instance As Object, configureOptions As Action(Of BinderOptions))
Parameters
configuration
IConfiguration IConfiguration IConfiguration

The configuration instance to bind.

instance
Object Object Object

The object to bind.

configureOptions
Action<BinderOptions>

Configures the binder options.

Bind(IConfiguration, String, Object) Bind(IConfiguration, String, Object) 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.

public static void Bind (this Microsoft.Extensions.Configuration.IConfiguration configuration, string key, object instance);
static member Bind : Microsoft.Extensions.Configuration.IConfiguration * string * obj -> unit
<Extension()>
Public Sub Bind (configuration As IConfiguration, key As String, instance As Object)
Parameters
configuration
IConfiguration IConfiguration IConfiguration

The configuration instance to bind.

key
String String String

The key of the configuration section to bind.

instance
Object Object Object

The object to bind.

Applies to