DefaultPropertyAttribute

DefaultPropertyAttribute

System.ComponentModel (system.dll) sealed class

Decorate a class with this attribute to indicate which of the properties should be treated as the default.

You can retrieve the Name of the default property from the attribute.

 public sealed class  DefaultPropertyAttribute  : Attribute {  // Public Constructors  public  DefaultPropertyAttribute  (string  name  );  // Public Static Fields  public static readonly DefaultPropertyAttribute  Default  ;  // =System.ComponentModel.DefaultPropertyAttribute   // Public Instance Properties  public string  Name  {get; }  // Public Instance Methods  public override bool  Equals  (object  obj  );  // overrides Attribute  public override int  GetHashCode  ();  // overrides Attribute  } 

Hierarchy

System.Object System.Attribute DefaultPropertyAttribute

Valid On

Class



. 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