DekGenius.com
[ Team LiB ] Previous Section Next Section

DefaultEventAttribute

System.ComponentModel (system.dll)sealed class

This attribute decorates a class to indicate which of the events should be the default. The VS.NET designers will add code to handle the default event when the component is double-clicked.

You can retrieve the Name of the default Attribute.

public sealed class DefaultEventAttribute : Attribute {
// Public Constructors
   public DefaultEventAttribute(string name);
// Public Static Fields
   public static readonly DefaultEventAttribute Default;  // =System.ComponentModel.DefaultEventAttribute
// 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 DefaultEventAttribute

Valid On

Class

    [ Team LiB ] Previous Section Next Section