EventInfo.GetRaiseMethod 메서드

정의

이벤트가 발생할 때 호출되는 메서드를 반환합니다.

오버로드

Name Description
GetRaiseMethod()

이벤트가 발생할 때 호출되는 메서드를 반환합니다.

GetRaiseMethod(Boolean)

파생 클래스에서 재정의되는 경우 이벤트가 발생할 때 호출되는 메서드를 반환하고 비공용 메서드를 반환할지 여부를 지정합니다.

GetRaiseMethod()

Source:
EventInfo.cs
Source:
EventInfo.cs
Source:
EventInfo.cs
Source:
EventInfo.cs
Source:
EventInfo.cs

이벤트가 발생할 때 호출되는 메서드를 반환합니다.

public:
 System::Reflection::MethodInfo ^ GetRaiseMethod();
public:
 virtual System::Reflection::MethodInfo ^ GetRaiseMethod();
public System.Reflection.MethodInfo? GetRaiseMethod();
public System.Reflection.MethodInfo GetRaiseMethod();
member this.GetRaiseMethod : unit -> System.Reflection.MethodInfo
abstract member GetRaiseMethod : unit -> System.Reflection.MethodInfo
override this.GetRaiseMethod : unit -> System.Reflection.MethodInfo
Public Function GetRaiseMethod () As MethodInfo

반품

이벤트가 발생할 때 호출되는 메서드입니다.

구현

설명

이 메서드는 일반적으로 C# null 키워드 또는 Visual Basic event 키워드로 선언된 이벤트에 대해 Event 반환합니다. 이는 C# 및 Visual Basic 컴파일러가 기본적으로 이러한 메서드를 생성하지 않기 때문입니다.

추가 정보

적용 대상

GetRaiseMethod(Boolean)

Source:
EventInfo.cs
Source:
EventInfo.cs
Source:
EventInfo.cs
Source:
EventInfo.cs
Source:
EventInfo.cs

파생 클래스에서 재정의되는 경우 이벤트가 발생할 때 호출되는 메서드를 반환하고 비공용 메서드를 반환할지 여부를 지정합니다.

public:
 abstract System::Reflection::MethodInfo ^ GetRaiseMethod(bool nonPublic);
public abstract System.Reflection.MethodInfo? GetRaiseMethod(bool nonPublic);
public abstract System.Reflection.MethodInfo GetRaiseMethod(bool nonPublic);
abstract member GetRaiseMethod : bool -> System.Reflection.MethodInfo
Public MustOverride Function GetRaiseMethod (nonPublic As Boolean) As MethodInfo

매개 변수

nonPublic
Boolean

public이 아닌 메서드를 반환할 수 있으면

반품

MethodInfo 이벤트가 발생할 때 호출된 개체입니다.

구현

예외

nonPublictrue이벤트 처리기 대리자를 추가하는 데 사용되는 메서드가 public이 아니며 호출자에게 public이 아닌 메서드를 반영할 수 있는 권한이 없습니다.

설명

이 메서드는 일반적으로 C# null 키워드 또는 Visual Basic event 키워드로 선언된 이벤트에 대해 Event 반환합니다. 이는 C# 및 Visual Basic 컴파일러가 기본적으로 이러한 메서드를 생성하지 않기 때문입니다.

추가 정보

적용 대상