ComAwareEventInfo.GetOtherMethods(Boolean) 方法

定义

返回在元数据中与某事件相关联的公共或非公共方法。Returns the public or non-public methods that have been associated with an event in metadata.

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

参数

nonPublic
Boolean

如果包括非公共方法,则为 true;否则为 falsetrue to include non-public methods; otherwise, false.

返回

MethodInfo[]

一个数组,表示在元数据中已与事件相关联的方法。An array representing the methods that have been associated with the event in metadata. 如果没有此类方法,则返回空数组。If there are no such methods, an empty array is returned.

适用于