TypeGetMember Method (String, MemberTypes, BindingFlags) |
Searches for the specified members of the specified member type, using the specified binding constraints.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public virtual MemberInfo[] GetMember(
string name,
MemberTypes type,
BindingFlags bindingAttr
)
Parameters
- name
- Type: SystemString
The string containing the name of the members to get. - type
- Type: System.ReflectionMemberTypes
The value to search for. - 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.
Exceptions See Also