Name
DefaultPropertyAttribute
Synopsis
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
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.