An event is defined using the TypeBuilder.DefineEvent method. DefineEvent returns an EventBuilder object.The DefineEvent method requires the caller to specify the event name, the event attributes (using the enum EventAttributes), and the event type.
The EventBuilder class allows the caller to specify the following: