EventInfo.GetRemoveMethod 메서드

정의

이벤트 소스에서 이벤트 처리기 대리자를 제거하는 데 사용되는 메서드를 반환합니다.

오버로드

GetRemoveMethod(Boolean)

파생된 클래스에서 재정의된 경우 이벤트의 메서드를 제거하기 위해 MethodInfo 개체를 검색하고 public이 아닌 메서드를 반환할지 여부를 지정합니다.

GetRemoveMethod()

이벤트 소스에서 이벤트 처리기 대리자를 제거하는 데 사용되는 메서드를 반환합니다.

GetRemoveMethod(Boolean)

파생된 클래스에서 재정의된 경우 이벤트의 메서드를 제거하기 위해 MethodInfo 개체를 검색하고 public이 아닌 메서드를 반환할지 여부를 지정합니다.

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

매개 변수

nonPublic
Boolean

public이 아닌 메서드를 반환할 수 있으면 true이고, 그렇지 않으면 false입니다.

반환

MethodInfo

이벤트 소스에서 이벤트 처리기 대리자를 제거하는 데 사용되는 메서드를 나타내는 MethodInfo 개체입니다.

구현

예외

nonPublictrue이고, 이벤트 처리기 대리자를 추가하는 데 사용되는 메서드가 public이 아니고, 호출자에게 public이 아닌 메서드에 반영할 권한이 없는 경우

예제

일반적으로 메서드에는 다음과 같은 서명이 있습니다.

remove_<EventName>(<EventHandlerType> handler)  

추가 정보

적용 대상

GetRemoveMethod()

이벤트 소스에서 이벤트 처리기 대리자를 제거하는 데 사용되는 메서드를 반환합니다.

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

반환

MethodInfo

이벤트 소스에서 이벤트 처리기 대리자를 제거하는 데 사용되는 메서드를 나타내는 MethodInfo 개체입니다.

구현

예제

일반적으로 메서드에는 다음과 같은 서명이 있습니다.

remove_<EventName>(<EventHandlerType> handler)  

추가 정보

적용 대상