Share via


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

'Declaration
Public Overridable Property IsReadOnly As Boolean
    Get
    Set
public virtual bool IsReadOnly { get; set; }
public:
virtual property bool IsReadOnly {
    bool get ();
    void set (bool value);
}

Property Value

Type: System.Boolean
true if the model is read-only; otherwise, false.

See Also

Reference

ModelMetadata Class

System.Web.Mvc Namespace