Name
ProvidePropertyAttribute
Synopsis
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
Get .NET Windows Forms in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.