TypeDelegator.GetMembers(BindingFlags) 方法

定义

返回由 bindingAttr 指定的成员。Returns members specified by bindingAttr.

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 bitmask that affects the way in which the search is conducted. 该值是零个或多个来自 BindingFlags 的位标志的组合。The value is a combination of zero or more bit flags from BindingFlags.

返回

MemberInfo 类型的数组,包含当前类及其基类的符合 bindingAttr 筛选器的所有成员。An array of type MemberInfo containing all the members of the current class and its base classes that meet the bindingAttr filter.

注解

如果bindingAttrBindingFlags。非公共的, 所有成员都将被视为。If bindingAttr is BindingFlags.NonPublic, all the members will be considered. 如果没有匹配项, 则返回空数组。If there are no matches, an empty array is returned.

适用于