Share via


BinderOptions.ErrorOnUnknownConfiguration Property

Definition

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 InvalidOperationException is thrown with a description of the error.

public:
 property bool ErrorOnUnknownConfiguration { bool get(); void set(bool value); };
public bool ErrorOnUnknownConfiguration { get; set; }
member this.ErrorOnUnknownConfiguration : bool with get, set
Public Property ErrorOnUnknownConfiguration As Boolean

Property Value

true to throw an InvalidOperationException when a configuration key doesn't have a matching property in the model object; false otherwise.

Remarks

The exception that's thrown when no matching property is found contains a description of the missing property.

Applies to