IsReadOnly Property
Gets or sets a value specifying whether Field is read-only.
Syntax
| Language | Syntax |
|---|---|
| C# | bool IsReadOnly { get; set; } |
| Visual Basic (Declaration) | Property IsReadOnly As Boolean |
| Visual C++ | property bool IsReadOnly { bool get (); void set (bool value); } |
Field Value
true if the Field is read-only; otherwise, false. The default is false.
Remarks
The value of the IsReadOnly property can also be set using the metadata configuration file. For more information, see readonly element (Metadata configuration). If information is specified using this property, this information overrides the value of the metadata configuration readonly element.