MetadataBuilder.AddEvent(EventAttributes, StringHandle, EntityHandle) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
이벤트 정의를 추가합니다.
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
- EntityHandle
이벤트 유형: TypeDefinitionHandle, TypeReferenceHandle 또는 TypeSpecificationHandle입니다.
반환
추가된 이벤트 정의에 대한 핸들입니다.
예외
type에 필요한 핸들 종류가 없습니다.