MutableObjectModelBinder.CanUpdateProperty Method (ModelMetadata)

.NET Framework (current version)
 

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

Namespace:   System.Web.ModelBinding
Assembly:  System.Web (in System.Web.dll)

Protected Overridable Function CanUpdateProperty (
	propertyMetadata As ModelMetadata
) As Boolean

Parameters

propertyMetadata
Type: System.Web.ModelBinding.ModelMetadata

Metadata for the property to be evaluated.

Return Value

Type: System.Boolean

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

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.

.NET Framework
Available since 4.5
Return to top
Show: