Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​ComponentModel.​ReadOnlyAttribute
Assembly: System.ComponentModel.Primitives
Inheritance: object → Attribute → ReadOnlyAttribute
Specifies whether the property this attribute is bound to is read-only or read/write. This class cannot be inherited.
Fields and Constants
public static readonly
ReadOnlyAttribute
Default
Specifies the default value for the <see cref="T:System.ComponentModel.ReadOnlyAttribute" /> , which is <see cref="F:System.ComponentModel.ReadOnlyAttribute.No" /> (that is, the property this attribute is bound to is read/write). This <see langword="static" /> field is read-only.
public static readonly
ReadOnlyAttribute
No
Specifies that the property this attribute is bound to is read/write and can be modified. This <see langword="static" /> field is read-only.
public static readonly
ReadOnlyAttribute
Yes
Specifies that the property this attribute is bound to is read-only and cannot be modified in the server explorer. This <see langword="static" /> field is read-only.
Properties
public
bool
IsReadOnly
Gets a value indicating whether the property this attribute is bound to is read-only.
public
object
TypeId
Methods
public
bool
Equals​(object value)
Indicates whether this instance and a specified object are equal.
Returns <see langword="true" /> if <paramref name="value" /> is equal to this instance; otherwise, <see langword="false" /> .
value
Another object to compare to.
public
int
GetHashCode​()
Returns the hash code for this instance.
Returns A hash code for the current <see cref="T:System.ComponentModel.ReadOnlyAttribute" /> .
public
bool
IsDefaultAttribute​()
Determines if this attribute is the default.
Returns <see langword="true" /> if the attribute is the default value for this attribute class; otherwise, <see langword="false" /> .
protected
void
Finalize​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object