GlobalScope.GetMembers(BindingFlags) 方法

定义

获取 MemberInfo 对象的数组,这些对象对应于全局范围的所有成员。Gets an array of MemberInfo objects that correspond to all members of the global scope.

此 API 支持产品基础结构,不能在代码中直接使用。

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

参数

bindingAttr
BindingFlags

枚举值的按位组合,用于指定反射如何执行成员搜索。A bitwise combination of the enumeration values that specifies how the search for members is conducted by reflection.

返回

MemberInfo[]

对象的数组,其中包含全局范围的所有成员。An array of objects that contains all members of the global scope.

实现

适用于

另请参阅