JSObject.GetMembers(BindingFlags) 方法

定义

获取 MemberInfo 对象的数组,这些对象对应于当前脚本对象的所有成员。Gets an array of MemberInfo objects that correspond to all members of the current script object.

此 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 current object.

实现

适用于

另请参阅