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);
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입니다.

예외

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

설명

또는 Assembly.GetType 를 사용하여 Type.GetType 형식을 검색하고 검색된 형식에서 리플렉션을 사용합니다.

적용 대상