Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ReadOnlyAttribute::Yes Field

 

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.

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

public:
static initonly ReadOnlyAttribute^ Yes

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
Return to top
Show:
© 2017 Microsoft