MetadataBuilder.AddEvent(EventAttributes, StringHandle, EntityHandle) Метод

Определение

Добавляет определение события.

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

Параметры

attributes
EventAttributes

Атрибуты события.

name
StringHandle

Имя события.

Возвращаемое значение

Дескриптор добавляемого определения события.

Исключения

type не имеет ожидаемого типа дескриптора.

Применяется к