ModelMetadata.IsReadOnly Property

 

Gets or sets a value that indicates whether the model is read-only.

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

Syntax

public virtual bool IsReadOnly { get; set; }
public:
property bool IsReadOnly {
    virtual bool get();
    virtual void set(bool value);
}
abstract IsReadOnly : bool with get, set
override IsReadOnly : bool with get, set
Public Overridable Property IsReadOnly As Boolean

Property Value

Type: System.Boolean

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

See Also

ModelMetadata Class
System.Web.Mvc Namespace

Return to top