MetadataBuilder.AddEvent(EventAttributes, StringHandle, EntityHandle) Methode

Definition

Fügt eine Ereignisdefinition hinzu.

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

Parameter

attributes
EventAttributes

Die Ereignisattribute.

name
StringHandle

Der Name des Ereignisses.

Gibt zurück

Ein Handle für die hinzugefügte Ereignisdefinition.

Ausnahmen

type weist nicht das erwartete Handle auf.

Gilt für: