Bagikan melalui


MetadataBuilder.AddEvent(EventAttributes, StringHandle, EntityHandle) Metode

Definisi

Menambahkan definisi peristiwa.

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

Atribut peristiwa.

name
StringHandle

Nama peristiwa.

Mengembalikan

Handel ke definisi peristiwa yang ditambahkan.

Pengecualian

type tidak memiliki jenis handel yang diharapkan.

Berlaku untuk