TypeBuilder.DefineEventCore(String, EventAttributes, Type) Metodo

Definizione

Quando sottoposto a override in una classe derivata, aggiunge un nuovo evento al tipo, con il nome, gli attributi e il tipo di evento specificati.

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

Parametri

name
String

Nome dell'evento. name non può contenere valori Null incorporati.

attributes
EventAttributes

Combinazione bit per bit dei valori di enumerazione che specifica gli attributi dell'evento.

eventtype
Type

Tipo di evento.

Restituisce

Evento definito.

Si applica a