AccessibleObject.IReflect.GetMember(String, BindingFlags) AccessibleObject.IReflect.GetMember(String, BindingFlags) AccessibleObject.IReflect.GetMember(String, BindingFlags) Method

定义

获取 MemberInfo 对象数组,这些对象对应于所有公共成员或与指定的名称匹配的所有成员。Gets an array of MemberInfo objects corresponding to all public members or to all members that match a specified name. 有关此成员的说明,请参见 GetMember(String, BindingFlags)For a description of this member, see GetMember(String, BindingFlags).

 virtual cli::array <System::Reflection::MemberInfo ^> ^ System.Reflection.IReflect.GetMember(System::String ^ name, System::Reflection::BindingFlags bindingAttr) = System::Reflection::IReflect::GetMember;
System.Reflection.MemberInfo[] IReflect.GetMember (string name, System.Reflection.BindingFlags bindingAttr);
Function GetMember (name As String, bindingAttr As BindingFlags) As MemberInfo() Implements IReflect.GetMember

参数

name
String String String

要查找的成员的名称。The name of the member to find.

bindingAttr
BindingFlags BindingFlags BindingFlags

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

返回

与 name 参数匹配的 MemberInfo 对象的数组。An array of MemberInfo objects matching the name parameter.

实现

注解

此成员是显式接口成员的实现。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.

适用于