RuntimeReflectionExtensions.GetRuntimeEvent(Type, String) 메서드

정의

지정된 이벤트를 나타내는 개체를 검색합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Reflection::EventInfo ^ GetRuntimeEvent(Type ^ type, System::String ^ name);
public static System.Reflection.EventInfo GetRuntimeEvent (this Type type, string name);
public static System.Reflection.EventInfo? GetRuntimeEvent (this Type type, string name);
static member GetRuntimeEvent : Type * string -> System.Reflection.EventInfo
<Extension()>
Public Function GetRuntimeEvent (type As Type, name As String) As EventInfo

매개 변수

type
Type

이벤트가 포함된 형식입니다.

name
String

이벤트의 이름입니다.

반환

지정된 이벤트를 나타내는 개체이며 이벤트가 없는 경우 null을 반환합니다.

예외

type이(가) null인 경우

또는

name이(가) null인 경우

적용 대상

추가 정보