Share via


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에 필요한 핸들 종류가 없습니다.

적용 대상