Share via


MetadataBuilder.AddEvent(EventAttributes, StringHandle, EntityHandle) Metoda

Definice

Přidá definici události.

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

Parametry

attributes
EventAttributes

Atributy události.

name
StringHandle

Název události

Návraty

Popisovač přidané definice události.

Výjimky

type nemá očekávaný druh popisovače.

Platí pro