GlobalScope.GetMethods(BindingFlags) 方法

定义

获取 MethodInfo 对象的数组,这些对象对应于全局范围的所有方法。Gets an array of MethodInfo objects that correspond to all methods of the global scope.

此 API 支持产品基础结构,不能在代码中直接使用。

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 bitwise combination of the enumeration values that specifies how the search for members is conducted by reflection.

返回

MethodInfo[]

对象的数组,其中包含全局范围的所有方法。An array of objects that contains all methods of the global scope.

实现

适用于

另请参阅