TypeBuilder.DefineEventCore(String, EventAttributes, Type) Method

Definition

When overridden in a derived class, adds a new event to the type, with the given name, attributes, and event type.

protected:
 abstract System::Reflection::Emit::EventBuilder ^ DefineEventCore(System::String ^ name, System::Reflection::EventAttributes attributes, Type ^ eventtype);
protected abstract System.Reflection.Emit.EventBuilder DefineEventCore (string name, System.Reflection.EventAttributes attributes, Type eventtype);
abstract member DefineEventCore : string * System.Reflection.EventAttributes * Type -> System.Reflection.Emit.EventBuilder
Protected MustOverride Function DefineEventCore (name As String, attributes As EventAttributes, eventtype As Type) As EventBuilder

Parameters

name
String

The name of the event. name cannot contain embedded nulls.

attributes
EventAttributes

A bitwise combination of the enumeration values that specifies the attributes of the event.

eventtype
Type

The type of the event.

Returns

The defined event.

Applies to