EventInfo.GetOtherMethods 메서드

정의

.other 지시문을 사용하여 MSIL의 이벤트에 연결된 메서드를 반환합니다.

오버로드

GetOtherMethods()

.other 지시문을 사용하여 메타데이터의 이벤트에 연결된 public 메서드를 반환합니다.

GetOtherMethods(Boolean)

.other 지시문을 사용하여 메타데이터의 이벤트에 연결된 메서드를 반환합니다. 이때 public이 아닌 메서드를 포함할지 여부를 지정할 수 있습니다.

GetOtherMethods()

.other 지시문을 사용하여 메타데이터의 이벤트에 연결된 public 메서드를 반환합니다.

public:
 cli::array <System::Reflection::MethodInfo ^> ^ GetOtherMethods();
public System.Reflection.MethodInfo[] GetOtherMethods ();
member this.GetOtherMethods : unit -> System.Reflection.MethodInfo[]
Public Function GetOtherMethods () As MethodInfo()

반환

MethodInfo[]

.other 지시문을 사용하여 메타데이터의 이벤트에 연결된 public 메서드를 나타내는 배열입니다. 해당되는 public 메서드가 없으면 빈 배열이 반환됩니다.

설명

이벤트에 대한 메타데이터는 네 가지 종류의 메서드를 이벤트와 연결할 수 있습니다.

  • 지시문은 .addon 이벤트 처리기를 추가하는 데 사용되는 메서드를 지정합니다. 메서드를 GetAddMethod 사용하여 해당 메서드를 EventInfo 검색합니다.

  • 지시문은 .removeon 이벤트 처리기를 분리하는 데 사용되는 메서드를 지정합니다. 메서드를 GetRemoveMethod 사용하여 해당 메서드를 EventInfo 검색합니다.

  • 지시문은 .fire 이벤트를 발생 시에 사용 하는 메서드를 지정 합니다. 메서드를 GetRaiseMethod 사용하여 해당 메서드를 EventInfo 검색합니다.

  • 지시문은 .other 이벤트와 연결된 다른 메서드를 지정합니다. 메서드를 GetOtherMethods 사용하여 해당 메서드에 대한 개체 배열 EventInfo 을 검색합니다.

지시문을 사용하여 .other 이벤트와 연결된 메서드는 런타임에 특별한 의미가 없습니다. C# 및 Visual Basic 컴파일러는 지시문을 사용하지 .other 않습니다.

적용 대상

GetOtherMethods(Boolean)

.other 지시문을 사용하여 메타데이터의 이벤트에 연결된 메서드를 반환합니다. 이때 public이 아닌 메서드를 포함할지 여부를 지정할 수 있습니다.

public:
 virtual cli::array <System::Reflection::MethodInfo ^> ^ GetOtherMethods(bool nonPublic);
public virtual System.Reflection.MethodInfo[] GetOtherMethods (bool nonPublic);
abstract member GetOtherMethods : bool -> System.Reflection.MethodInfo[]
override this.GetOtherMethods : bool -> System.Reflection.MethodInfo[]
Public Overridable Function GetOtherMethods (nonPublic As Boolean) As MethodInfo()

매개 변수

nonPublic
Boolean

public이 아닌 메서드를 포함하면 true이고, 그렇지 않으면 false입니다.

반환

MethodInfo[]

.other 지시문을 사용하여 메타데이터의 이벤트에 연결된 메서드를 나타내는 배열입니다. 지정한 사양과 일치하는 메서드가 없으면 빈 배열이 반환됩니다.

예외

이 메서드가 구현되지 않은 경우

설명

이벤트에 대한 메타데이터는 네 가지 종류의 메서드를 이벤트와 연결할 수 있습니다.

  • 지시문은 .addon 이벤트 처리기를 추가하는 데 사용되는 메서드를 지정합니다. 메서드를 GetAddMethod 사용하여 해당 메서드를 EventInfo 검색합니다.

  • 지시문은 .removeon 이벤트 처리기를 분리하는 데 사용되는 메서드를 지정합니다. 메서드를 GetRemoveMethod 사용하여 이 메서드에 대한 검색을 EventInfo 수행합니다.

  • 지시문은 .fire 이벤트를 발생 시에 사용 하는 메서드를 지정 합니다. 메서드를 GetRaiseMethod 사용하여 이 메서드에 대한 검색을 EventInfo 수행합니다.

  • 지시문은 .other 이벤트와 연결된 다른 메서드를 지정합니다. 메서드를 GetOtherMethods 사용하여 해당 메서드에 대한 개체 배열 EventInfo 을 검색합니다.

지시문을 사용하여 .other 이벤트와 연결된 메서드는 런타임에 특별한 의미가 없습니다. C# 및 Visual Basic 컴파일러는 지시문을 사용하지 .other 않습니다.

적용 대상