ModelMetadata.IsReadOnly Property

.NET Framework (current version)

Gets or sets a value that specifies whether the model can be updated.

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

public virtual bool IsReadOnly { get; set; }

Property Value

Type: System.Boolean

true if the model is read-only; otherwise, false The default is false.

.NET Framework
Available since 4.5
Return to top