TypeBuilder.DefineEventCore(String, EventAttributes, 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

Параметры

name
String

Имя события. Параметр name не может содержать внедренные значения NULL.

attributes
EventAttributes

Побитовое сочетание значений перечисления, указывающее атрибуты события.

eventtype
Type

тип события;

Возвращаемое значение

Определенное событие.

Применяется к