AccessibleObject.IReflect.GetMethods(BindingFlags) AccessibleObject.IReflect.GetMethods(BindingFlags) AccessibleObject.IReflect.GetMethods(BindingFlags) Method

定义

获取 MethodInfo 对象的数组,其中包含了所有公共方法或当前类的所有方法。Gets an array of MethodInfo objects with all public methods or all methods of the current class. 有关此成员的说明,请参见 GetMethods(BindingFlags)For a description of this member, see GetMethods(BindingFlags).

 virtual cli::array <System::Reflection::MethodInfo ^> ^ System.Reflection.IReflect.GetMethods(System::Reflection::BindingFlags bindingAttr) = System::Reflection::IReflect::GetMethods;
System.Reflection.MethodInfo[] IReflect.GetMethods (System.Reflection.BindingFlags bindingAttr);
Function GetMethods (bindingAttr As BindingFlags) As MethodInfo() Implements IReflect.GetMethods

参数

bindingAttr
BindingFlags BindingFlags BindingFlags

用于控制搜索的绑定属性。The binding attributes used to control the search.

返回

MethodInfo 对象的数组,包含为此反射对象定义的符合 bindingAttr 中指定的搜索约束的所有方法。An array of MethodInfo objects containing all the methods defined for this reflection object that meet the search constraints specified in bindingAttr.

实现

注解

此成员是显式接口成员的实现。This member is an explicit interface member implementation. 它只能在 AccessibleObject 实例被强制转换为 IReflect 接口时使用。It can be used only when the AccessibleObject instance is cast to an IReflect interface.

适用于