Dela via


ModelMetadata.IsBindingRequired Property

Definition

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.

Applies to