TypeDelegator.GetMethods(BindingFlags) 方法

定义

返回 MethodInfo 对象的数组,这些对象表示由当前 TypeDelegator 包装的类型的指定方法。Returns an array of MethodInfo objects representing specified methods of the type wrapped by the current TypeDelegator.

public:
 override cli::array <System::Reflection::MethodInfo ^> ^ GetMethods(System::Reflection::BindingFlags bindingAttr);
public override System.Reflection.MethodInfo[] GetMethods (System.Reflection.BindingFlags bindingAttr);
override this.GetMethods : System.Reflection.BindingFlags -> System.Reflection.MethodInfo[]
Public Overrides Function GetMethods (bindingAttr As BindingFlags) As MethodInfo()

参数

bindingAttr
BindingFlags

影响执行搜索的方式的位掩码。A bitmask that affects the way in which the search is conducted. 该值是零个或多个来自 BindingFlags 的位标志的组合。The value is a combination of zero or more bit flags from BindingFlags.

返回

MethodInfo 对象的数组,表示在此 TypeDelegator 上定义的方法。An array of MethodInfo objects representing the methods defined on this TypeDelegator.

适用于