Compartir vía


MetadataBuilder.AddEvent(EventAttributes, StringHandle, EntityHandle) Método

Definición

Agrega una definición de evento.

public:
 System::Reflection::Metadata::EventDefinitionHandle AddEvent(System::Reflection::EventAttributes attributes, System::Reflection::Metadata::StringHandle name, System::Reflection::Metadata::EntityHandle type);
public System.Reflection.Metadata.EventDefinitionHandle AddEvent (System.Reflection.EventAttributes attributes, System.Reflection.Metadata.StringHandle name, System.Reflection.Metadata.EntityHandle type);
member this.AddEvent : System.Reflection.EventAttributes * System.Reflection.Metadata.StringHandle * System.Reflection.Metadata.EntityHandle -> System.Reflection.Metadata.EventDefinitionHandle
Public Function AddEvent (attributes As EventAttributes, name As StringHandle, type As EntityHandle) As EventDefinitionHandle

Parámetros

attributes
EventAttributes

Los atributos del evento.

name
StringHandle

Nombre del evento.

Devoluciones

Un identificador de la definición de evento agregada.

Excepciones

type no tiene el tipo de identificador esperado.

Se aplica a