ProvidePropertyAttribute

ProvidePropertyAttribute

System.ComponentModel (system.dll) sealed class

This attribute adorns classes that implement IExtenderProvider in order to indicate the properties it will provide for the components that it extends. Multiple instances can be added to support multiple extender properties.

You can retrieve the PropertyName of the extender property. The ReceiverTypeName is the name of the root data type that this class can extend.

See IExtenderProvider for more information on extended properties.

 public sealed class  ProvidePropertyAttribute  : Attribute {  // Public Constructors  public  ProvidePropertyAttribute  (string  propertyName  , string  receiverTypeName  );    public  ProvidePropertyAttribute  (string  propertyName  , Type  receiverType  );  // Public Instance Properties  public string  PropertyName  {get; }    public string  ReceiverTypeName  {get; }    public override object  TypeId  {get; }  // overrides Attribute   // Public Instance Methods  public override bool  Equals  (object  obj  );  // overrides Attribute  public override int  GetHashCode  ();  // overrides Attribute  } 

Hierarchy

System.Object System.Attribute ProvidePropertyAttribute

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