System.Reflection.IReflect.GetMember Method

Retrieves an array of System.Reflection.MemberInfo objects corresponding to all public members or to all members that match a specified name.

Syntax

public MemberInfo[] GetMember (string name, BindingFlags bindingAttr)

Parameters

name
The name of the member to find.
bindingAttr
The binding attributes used to control the search.

Returns

An array of System.Reflection.MemberInfo objects matching the name parameter.

Remarks

The IReflect.GetMember(string, BindingFlags) method retrieves an array of System.Reflection.MemberInfo objects by using the name and binding attribute that correspond to all public members or to all members that match a specified name. The case of the specified name is observed or ignored, as specified by BindingFlags.IgnoreCase.

Requirements

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0