Mono Class Library: System.Reflection Namespace

System.Reflection.EventInfo Class

Provides access to event metadata. [Edit]

See Also: EventInfo Members

System.Object
     System.Reflection.MemberInfo
          System.Reflection.EventInfo

[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.ComDefaultInterface(typeof(System.Runtime.InteropServices._EventInfo))]
[System.Runtime.InteropServices.ComVisible(true)]
public abstract class EventInfo : MemberInfo, System.Runtime.InteropServices._EventInfo

Thread Safety

This type is safe for multithreaded operations.

Remarks

Events are handled by delegates. An event listener supplies an event-handler delegate that is invoked whenever the event is raised by an event source. In order to connect to the event source, the event listener adds this delegate to the invocation list of the source. When the event is raised, the event-handler delegate invokes the methods in its invocation list. The EventInfo.GetAddMethod, EventInfo.AddEventHandler(object, Delegate) , EventInfo.GetRemoveMethod, and EventInfo.RemoveEventHandler(object, Delegate) methods, and the delegate type of the event-handler associated with an event, are required to be marked in the metadata.

Note: For information on delegates, see the Delegate class overview.

Note: For information on events, see Partitions I and II of the CLI specification.

[Edit]

Requirements

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0