AccessibleObject.IReflect.GetMethods(BindingFlags) 方法
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取 MethodInfo 对象的数组,其中包含了所有公共方法或当前类的所有方法。 有关此成员的说明,请参见 GetMethods(BindingFlags)。
virtual cli::array <System::Reflection::MethodInfo ^> ^ System.Reflection.IReflect.GetMethods(System::Reflection::BindingFlags bindingAttr) = System::Reflection::IReflect::GetMethods;
C#
System.Reflection.MethodInfo[] IReflect.GetMethods (System.Reflection.BindingFlags bindingAttr);
abstract member System.Reflection.IReflect.GetMethods : System.Reflection.BindingFlags -> System.Reflection.MethodInfo[]
override this.System.Reflection.IReflect.GetMethods : System.Reflection.BindingFlags -> System.Reflection.MethodInfo[]
Function GetMethods (bindingAttr As BindingFlags) As MethodInfo() Implements IReflect.GetMethods
- bindingAttr
- BindingFlags
用于控制搜索的绑定属性。
MethodInfo 对象的数组,包含为此反射对象定义的符合 bindingAttr
中指定的搜索约束的所有方法。
此成员是显式接口成员的实现。 它只能在 AccessibleObject 实例被强制转换为 IReflect 接口时使用。
产品 | 版本 |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 |
Windows Desktop | 3.0, 3.1, 5, 6, 7 |