DekGenius.com
[ Team LiB ] Previous Section Next Section

ImmutableObjectAttribute

System.ComponentModel (system.dll)sealed class

This attribute is applied to classes that have no editable properties, and can therefore be displayed as read-only in the designer.

Commonly, this is applied to expandable objects (see ExpandableObjectConverter) whose properties should be displayed as read-only in a System.Windows.Forms.PropertyGrid.

public sealed class ImmutableObjectAttribute : Attribute {
// Public Constructors
   public ImmutableObjectAttribute(bool immutable);
// Public Static Fields
   public static readonly ImmutableObjectAttribute Default;  // =System.ComponentModel.ImmutableObjectAttribute
   public static readonly ImmutableObjectAttribute No;  // =System.ComponentModel.ImmutableObjectAttribute
   public static readonly ImmutableObjectAttribute Yes;  // =System.ComponentModel.ImmutableObjectAttribute
// Public Instance Properties
   public bool Immutable{get; }
// Public Instance Methods
   public override bool Equals(object obj);  // overrides Attribute
   public override int GetHashCode();  // overrides Attribute
   public override bool IsDefaultAttribute();  // overrides Attribute
}

Hierarchy

System.Object System.Attribute ImmutableObjectAttribute

Valid On

All

    [ Team LiB ] Previous Section Next Section