TypeDelegator.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

검색 수행 방법에 영향을 주는 비트 마스크입니다. 이 값은 0이나 BindingFlags의 여러 비트 플래그의 조합으로 구성됩니다.

반환

이 형식에 의해 지정한 이름으로 선언 또는 상속된 이벤트를 나타내는 EventInfo 개체입니다. 이런 이벤트가 없으면 null을 반환합니다.

예외

name 매개 변수가 null인 경우

설명

BindingFlags이면IgnoreCasebindingAttr 매개 변수의 대/소문자를 name 무시합니다.

적용 대상