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 exceptions are thrown when converting a value or when a configuration key is found for which the provided model object doesn't have an appropriate property that matches the key's name.
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
if an InvalidOperationException is thrown with a description; false
if no exceptions are thrown. The default is false
.
Remarks
The exception that's thrown when no matching property is found contains a description of the missing property.
Applies to
.NET