DekGenius.com
[ Team LiB ] Previous Section Next Section

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

    [ Team LiB ] Previous Section Next Section