ImmutableObjectAttribute

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



. Net Windows Forms in a Nutshell
.NET Windows Forms in a Nutshell
ISBN: 0596003382
EAN: 2147483647
Year: 2002
Pages: 794

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net