Aracılığıyla paylaş


MetadataBuilder.AddEvent(EventAttributes, StringHandle, EntityHandle) Yöntem

Tanım

Olay tanımı ekler.

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

Parametreler

attributes
EventAttributes

Olay öznitelikleri.

name
StringHandle

Olay adı.

Döndürülenler

Eklenen olay tanımının tanıtıcısı.

Özel durumlar

type beklenen tanıtıcı türüne sahip değil.

Şunlara uygulanır