ModelMetadata.IsBindingRequired 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 a value indicating whether or not the model value is required by model binding. This is only applicable when the current instance represents a property.
public:
abstract property bool IsBindingRequired { bool get(); };
public abstract bool IsBindingRequired { get; }
member this.IsBindingRequired : bool
Public MustOverride ReadOnly Property IsBindingRequired As Boolean
Property Value
Remarks
If true
then the model value is considered required by model binding and must have a value supplied in the request to be considered valid.