_Type.GetEvents 메서드

정의

버전에 관계없이 GetEvents 메서드에 액세스할 수 있는 COM 개체를 제공합니다.

오버로드

GetEvents()

버전에 관계없이 GetEvents() 메서드에 액세스할 수 있는 COM 개체를 제공합니다.

GetEvents(BindingFlags)

버전에 관계없이 GetEvents(BindingFlags) 메서드에 액세스할 수 있는 COM 개체를 제공합니다.

설명

이 메서드는 비관리 코드에서 액세스를 위한 관리 되는 클래스에는 하며 관리 코드에서 호출할 수 없습니다.

합니다 Type.GetEvents 메서드 선언 되거나 현재 상속 되는 이벤트를 가져옵니다. Type합니다.

GetEvents()

버전에 관계없이 GetEvents() 메서드에 액세스할 수 있는 COM 개체를 제공합니다.

public:
 cli::array <System::Reflection::EventInfo ^> ^ GetEvents();
public System.Reflection.EventInfo[] GetEvents ();
abstract member GetEvents : unit -> System.Reflection.EventInfo[]
Public Function GetEvents () As EventInfo()

반환

EventInfo[]

현재 EventInfo에 의해 선언되거나 상속되는 모든 public 이벤트를 나타내는 Type 개체의 배열입니다.

또는 현재 EventInfo에 public 이벤트가 없을 경우 Type 형식의 빈 배열입니다.

설명

이 메서드는 비관리 코드에서 액세스를 위한 관리 되는 클래스에는 하며 관리 코드에서 호출할 수 없습니다.

합니다 Type.GetEvents 메서드는 선언 되거나 현재 상속 되는 모든 public 이벤트를 반환 합니다. Type합니다.

적용 대상

GetEvents(BindingFlags)

버전에 관계없이 GetEvents(BindingFlags) 메서드에 액세스할 수 있는 COM 개체를 제공합니다.

public:
 cli::array <System::Reflection::EventInfo ^> ^ GetEvents(System::Reflection::BindingFlags bindingAttr);
public System.Reflection.EventInfo[] GetEvents (System.Reflection.BindingFlags bindingAttr);
abstract member GetEvents : System.Reflection.BindingFlags -> System.Reflection.EventInfo[]
Public Function GetEvents (bindingAttr As BindingFlags) As EventInfo()

매개 변수

bindingAttr
BindingFlags

검색 방법을 지정하는 하나 이상의 BindingFlags로 구성된 비트 마스크입니다.

또는 0(null을 반환하는 경우)

반환

EventInfo[]

현재 EventInfo에 의해 선언되거나 상속되는 이벤트 중 지정된 바인딩 제약 조건과 일치하는 모든 이벤트를 나타내는 Type 개체의 배열입니다.

또는 현재 EventInfo에 이벤트가 없거나 해당 바인딩 제약 조건과 일치하는 이벤트가 없을 경우 Type 형식의 빈 배열입니다.

설명

이 메서드는 비관리 코드에서 액세스를 위한 관리 되는 클래스에는 하며 관리 코드에서 호출할 수 없습니다.

Type.GetEvents 메서드를 선언 되거나 현재 상속 되는 이벤트 검색 Type, 지정 된 바인딩 제약 조건입니다.

적용 대상