MetadataBuilder.AddEvent(EventAttributes, StringHandle, EntityHandle) Methode

Definitie

Hiermee voegt u een gebeurtenisdefinitie toe.

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

Parameters

attributes
EventAttributes

De gebeurteniskenmerken.

name
StringHandle

De naam van het evenement.

Retouren

Een ingang voor de toegevoegde gebeurtenisdefinitie.

Uitzonderingen

type heeft niet de verwachte soort ingang.

Van toepassing op