BinderOptions.ErrorOnUnknownConfiguration Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.