System.Reflection.Emit.EnumBuilder.GetEvents Method

Returns the public and non-public events that are declared by this type.

Syntax

public override System.Reflection.EventInfo[] GetEvents (System.Reflection.BindingFlags bindingAttr)

Parameters

bindingAttr
This must be a bit flag from System.Reflection.BindingFlags, such as InvokeMethod, NonPublic, and so on.

Returns

Returns an array of System.Reflection.EventInfo objects representing the public and non-public events declared or inherited by this type. An empty array is returned if there are no events, as specified.

Remarks

As a workaround, to retrieve the events of a finished type, retrieve the type using Type.GetType or System.Reflection.Assembly.GetType(string) and use reflection on the retrieved type to retrieve the events.

Requirements

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