ReadOnlyAttribute::Yes Field
.NET Framework (current version)
Specifies that the property this attribute is bound to is read-only and cannot be modified in the server explorer. This static field is read-only.
Assembly: System (in System.dll)
Field Value
Type: System.ComponentModel::ReadOnlyAttribute^When you mark a property with the ReadOnlyAttribute set to true, the value of this attribute is set to the constant member Yes. Therefore, when you want to check whether the attribute is set to this value in your code, you must specify the attribute as ReadOnlyAttribute::Yes.
.NET Framework
Available since 1.1
Available since 1.1
Show: