次の方法で共有


BinderOptions.ErrorOnUnknownConfiguration Property

Definition

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