IReflect.GetMembers(BindingFlags) IReflect.GetMembers(BindingFlags) IReflect.GetMembers(BindingFlags) IReflect.GetMembers(BindingFlags) Method

定义

检索与所有公共成员或当前类的所有成员对应的 MemberInfo 对象的数组。Retrieves an array of MemberInfo objects that correspond either to all public members or to all members of the current class.

public:
 cli::array <System::Reflection::MemberInfo ^> ^ GetMembers(System::Reflection::BindingFlags bindingAttr);
public System.Reflection.MemberInfo[] GetMembers (System.Reflection.BindingFlags bindingAttr);
abstract member GetMembers : System.Reflection.BindingFlags -> System.Reflection.MemberInfo[]
Public Function GetMembers (bindingAttr As BindingFlags) As MemberInfo()

参数

bindingAttr
BindingFlags BindingFlags BindingFlags BindingFlags

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

返回

包含此反射对象的所有成员信息的 MemberInfo 对象数组。An array of MemberInfo objects containing all the member information for this reflection object.

注解

此方法通过使用对应于MemberInfo所有公共成员或当前类的所有成员的绑定特性来检索对象的数组。This method retrieves an array of MemberInfo objects by using the binding attribute that corresponds either to all public members or to all members of the current class. 它返回为此对象定义的所有成员的数组。It returns an array of all of the members defined for this object.

适用于

另请参阅