BinderOptions.ErrorOnUnknownConfiguration Property

Definition

Gets or sets a value that indicates whether an exception is thrown when a configuration key doesn't have a matching property in the model object.

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