Default Field
Collapse the table of content
Expand the table of content

ReadOnlyAttribute.Default Field

 

Specifies the default value for the ReadOnlyAttribute, which is No (that is, the property this attribute is bound to is read/write). This static field is read-only.

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

public static readonly ReadOnlyAttribute Default

When you mark a property with this value, 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
Show:
© 2016 Microsoft