TypeGetMember Method (String, BindingFlags) |
Searches for the specified members, using the specified binding constraints.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public virtual MemberInfo[] GetMember(
string name,
BindingFlags bindingAttr
)
Parameters
- name
- Type: SystemString
The string containing the name of the members to get. - bindingAttr
- Type: System.ReflectionBindingFlags
A bitmask comprised of one or more BindingFlags that specify how the search is conducted.-or- Zero, to return an empty array.
Return Value
Type:
MemberInfoAn array of
MemberInfo objects representing the public members with the specified name, if found; otherwise, an empty array.
Implements
IReflectGetMember(String, BindingFlags)Exceptions See Also