ReadOnlyAttribute.No Field


Specifies that the property this attribute is bound to is read/write and can be modified. This static field is read-only.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

public static readonly ReadOnlyAttribute No

This field is the default setting for this attribute.

When you mark a property with the ReadOnlyAttribute set to false, the value of this attribute is set to the constant member No. Therefore, when you want to check whether the attribute is set to this value in your code, you must specify the attribute as ReadOnlyAttribute.No.

.NET Framework
Available since 1.1
Return to top