CachedDataAnnotationsMetadataAttributes::ReadOnly Property

Indicates whether a data field is read only.

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

public:
property ReadOnlyAttribute^ ReadOnly {
	ReadOnlyAttribute^ get ();
	protected: void set (ReadOnlyAttribute^ value);
}

Property Value

Type: System.ComponentModel::ReadOnlyAttribute
true if the field is read only; otherwise, false.
Show: