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.​DesignOnlyAttribute

Assembly: System.ComponentModel.Primitives

Inheritance: object → Attribute → DesignOnlyAttribute

Specifies whether a property can only be set at design time.

Fields and Constants

public static readonly DesignOnlyAttribute
Default
Specifies the default value for the <see cref="T:System.ComponentModel.DesignOnlyAttribute" /> , which is <see cref="F:System.ComponentModel.DesignOnlyAttribute.No" /> . This <see langword="static" /> field is read-only.
public static readonly DesignOnlyAttribute
No
Specifies that a property can be set at design time or at run time. This <see langword="static" /> field is read-only.
public static readonly DesignOnlyAttribute
Yes
Specifies that a property can be set only at design time. This <see langword="static" /> field is read-only.

Properties

public bool
IsDesignOnly
Gets a value indicating whether a property can be set only at design time.
public object
TypeId

Methods

public bool
Equals​(object obj)
Returns whether the value of the given object is equal to the current <see cref="T:System.ComponentModel.DesignOnlyAttribute" /> .
Returns <see langword="true" /> if the value of the given object is equal to that of the current; otherwise, <see langword="false" /> .
obj The object to test the value equality of.
public int
GetHashCode​()
Returns the hash code for this instance.
Returns A 32-bit signed integer hash code.
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" /> .
public bool
Match​(object obj)
Inherited from Attribute
protected void
Finalize​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object