TypeBuilder.DefineEventCore(String, EventAttributes, Type) Método

Definición

Cuando se reemplaza en una clase derivada, agrega un nuevo evento al tipo , con el nombre, los atributos y el tipo de evento especificados.

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

Parámetros

name
String

Nombre del evento. name no puede contener valores null insertados.

attributes
EventAttributes

Combinación bit a bit de los valores de enumeración que especifica los atributos del evento.

eventtype
Type

El tipo de evento.

Devoluciones

Evento definido.

Se aplica a