Specifies that the property was originally an event and provides the event information.
Object
Attribute
MemberAttribute
EventDescriptorAttribute
[Visual Basic] Public Class EventDescriptorAttribute Inherits MemberAttribute [C#] public class EventDescriptorAttribute : MemberAttribute [C++] public __gc class EventDescriptorAttribute : public MemberAttribute [JScript] public class EventDescriptorAttribute extends MemberAttribute
You use an EventDescriptor at design time when you convert an event to a property. Events are converted to properties so they can be viewed and changed. The EventDescriptor provides a way to identify that the property was an event and allows you to recover the original event.
Use the InnerEvent property to get the instance of the EventDescriptor that this attribute is set to.
For more information, see TBD and TBD.
Namespace: System.ComponentModel
Assembly: System.dll
System.ComponentModel Namespace | MemberAttribute | EventDescriptor