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

定义

检索与所有公共成员对应或者与匹配指定名称的所有成员对应的 MemberInfo 对象的数组。Retrieves an array of MemberInfo objects corresponding to all public members or to all members that match a specified name.

public:
 cli::array <System::Reflection::MemberInfo ^> ^ GetMember(System::String ^ name, System::Reflection::BindingFlags bindingAttr);
public System.Reflection.MemberInfo[] GetMember (string name, System.Reflection.BindingFlags bindingAttr);
abstract member GetMember : string * System.Reflection.BindingFlags -> System.Reflection.MemberInfo[]
Public Function GetMember (name As String, bindingAttr As BindingFlags) As MemberInfo()

参数

name
String String String String

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

bindingAttr
BindingFlags BindingFlags BindingFlags BindingFlags

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

返回

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

注解

GetMember方法检索数组MemberInfo对应于所有公共成员或指定的名称匹配的所有成员使用的名称和绑定特性的对象。The GetMember method retrieves an array of MemberInfo objects by using the name and binding attribute that correspond to all public members or to all members that match a specified name. 观察到指定名称的大小写或将其忽略,所指定的BindingFlags.IgnoreCaseThe case of the specified name is observed or ignored, as specified by BindingFlags.IgnoreCase.

适用于

另请参阅