Name

DescriptionAttribute

Synopsis

You can decorate a property with this attribute to provide some descriptive help text (the Description).


public class DescriptionAttribute : Attribute {

// Public Constructors

   public DescriptionAttribute();

   public DescriptionAttribute(string description);

// Public Static Fields

   public static readonly DescriptionAttribute Default;  // =System.ComponentModel.DescriptionAttribute

                  // Public Instance Properties

   public virtual string Description{get; }

// Protected Instance Properties

   protected string DescriptionValue{set; get; }

// Public Instance Methods

   public override bool Equals(object obj);  // overrides Attribute

   public override int GetHashCode();  // overrides Attribute

}

Hierarchy

System.Object System.Attribute DescriptionAttribute

Subclasses

System.Diagnostics.MonitoringDescriptionAttribute, System.IO.IODescriptionAttribute, System.Timers.TimersDescriptionAttribute

Valid On

All

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.