Share via


BindingMetadata.IsReadOnly Property

Definition

Gets or sets a value indicating whether or not the model is read-only. Will be ignored if the model metadata being created is not a property. If null then IsReadOnly will be computed based on the accessibility of the property accessor and model Type. See IsReadOnly.

public:
 property Nullable<bool> IsReadOnly { Nullable<bool> get(); void set(Nullable<bool> value); };
public bool? IsReadOnly { get; set; }
member this.IsReadOnly : Nullable<bool> with get, set
Public Property IsReadOnly As Nullable(Of Boolean)

Property Value

Applies to