TypeBuilder.GetEvents 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
현재 TypeBuilder에서 정의한 이벤트를 반환합니다.
오버로드
| Name | Description |
|---|---|
| GetEvents() |
이 형식에 의해 선언되거나 상속된 공용 이벤트를 반환합니다. |
| GetEvents(BindingFlags) |
이 형식으로 선언된 public 및 non-public 이벤트를 반환합니다. |
GetEvents()
이 형식에 의해 선언되거나 상속된 공용 이벤트를 반환합니다.
public:
override cli::array <System::Reflection::EventInfo ^> ^ GetEvents();
public override System.Reflection.EventInfo[] GetEvents();
override this.GetEvents : unit -> System.Reflection.EventInfo[]
Public Overrides Function GetEvents () As EventInfo()
반품
이 형식에 의해 선언되거나 상속된 공용 이벤트를 나타내는 개체의 배열 EventInfo 을 반환합니다. 공용 이벤트가 없는 경우 빈 배열이 반환됩니다.
예외
이 메서드는 불완전한 형식에 대해 구현되지 않습니다.
설명
검색된 형식을 사용 GetType 하거나 GetType 리플렉션을 사용하여 형식을 검색합니다.
적용 대상
GetEvents(BindingFlags)
이 형식으로 선언된 public 및 non-public 이벤트를 반환합니다.
public:
override cli::array <System::Reflection::EventInfo ^> ^ GetEvents(System::Reflection::BindingFlags bindingAttr);
public override System.Reflection.EventInfo[] GetEvents(System.Reflection.BindingFlags bindingAttr);
override this.GetEvents : System.Reflection.BindingFlags -> System.Reflection.EventInfo[]
Public Overrides Function GetEvents (bindingAttr As BindingFlags) As EventInfo()
매개 변수
- bindingAttr
- BindingFlags
검색을 제한하는 값의 BindingFlags 비트 조합입니다.
반품
지정된 바인딩 플래그와 일치하는 이 형식에 의해 선언되거나 상속된 이벤트를 나타내는 개체의 배열 EventInfo 을 반환합니다. 일치하는 이벤트가 없으면 빈 배열이 반환됩니다.
예외
이 메서드는 불완전한 형식에 대해 구현되지 않습니다.
설명
검색된 형식을 사용 Type.GetType 하거나 Assembly.GetType 리플렉션을 사용하여 형식을 검색합니다.