System.ComponentModel.DefaultEventAttribute Class

Specifies the default event for a component.

See Also: DefaultEventAttribute Members

Syntax

[System.AttributeUsage(System.AttributeTargets.Class)]
public sealed class DefaultEventAttribute : Attribute

Remarks

Use the DefaultEventAttribute.Name property to get the name of the default event.

For more information, see Extending Metadata Using Attributes.

Requirements

Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0, 2.0.0.0, 4.0.0.0