Editar

Compartir a través de


MutableObjectModelBinder.CanUpdateProperty(ModelMetadata) Method

Definition

Returns a value that indicates whether a property can be updated.

protected:
 virtual bool CanUpdateProperty(System::Web::ModelBinding::ModelMetadata ^ propertyMetadata);
protected virtual bool CanUpdateProperty (System.Web.ModelBinding.ModelMetadata propertyMetadata);
abstract member CanUpdateProperty : System.Web.ModelBinding.ModelMetadata -> bool
override this.CanUpdateProperty : System.Web.ModelBinding.ModelMetadata -> bool
Protected Overridable Function CanUpdateProperty (propertyMetadata As ModelMetadata) As Boolean

Parameters

propertyMetadata
ModelMetadata

Metadata for the property to be evaluated.

Returns

true if the property can be updated; otherwise, false.

Remarks

A property can be updated if its ModelMetadata.IsReadOnly property value is false. If a property's ModelMetadata.IsReadOnly property value is true, the property can be updated if it is not a value type, a string, or an array.

Applies to