IConfiguration.Bind Method
Fills AInstance with the values of this section, and validates it.
Remarks
A member whose key is absent keeps the value it has, unless it is marked [Required]. Every problem found is collected and reported in a single EConfigurationException. See Bcl.Configuration.Binder.TConfigurationBinder.
Syntax
Unit: Bcl.Configuration
procedure IConfiguration.Bind(AInstance: TObject; AUnknownKeys: TUnknownMemberHandling = TUnknownMemberHandling.Ignore); virtual; abstract;
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| AInstance | TObject | The object to fill. Its members are found the way the JSON framework finds them, and matched with the keys without regard to letter case. |
|
| AUnknownKeys | TUnknownMember​Handling | Optional: Default value is TUnknownMemberHandling.Ignore What to do with a key that matches no member. Ignored by default. |