TypeBuilder.GetEvent(String, BindingFlags) 메서드

정의

지정된 이름의 이벤트를 반환합니다.

public:
 override System::Reflection::EventInfo ^ GetEvent(System::String ^ name, System::Reflection::BindingFlags bindingAttr);
public override System.Reflection.EventInfo GetEvent(string name, System.Reflection.BindingFlags bindingAttr);
override this.GetEvent : string * System.Reflection.BindingFlags -> System.Reflection.EventInfo
Public Overrides Function GetEvent (name As String, bindingAttr As BindingFlags) As EventInfo

매개 변수

name
String

검색할 이벤트의 이름입니다.

bindingAttr
BindingFlags

검색을 제한하는 값의 BindingFlags 비트 조합입니다.

반품

EventInfo 지정된 이름을 사용하여 이 형식에 의해 선언되거나 상속된 이벤트를 나타내는 개체이거나 null 일치하는 항목이 없는 경우

예외

이 메서드는 불완전한 형식에 대해 구현되지 않습니다.

설명

검색된 형식을 사용 Type.GetType 하거나 Assembly.GetType 리플렉션을 사용하여 형식을 검색합니다.

적용 대상