Export (0) Print
Expand All

IReflect.GetMember Method

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

[Visual Basic]
Function GetMember( _
   ByVal name As String, _
   ByVal bindingAttr As BindingFlags _
) As MemberInfo()
[C#]
MemberInfo[] GetMember(
   string name,
 BindingFlags bindingAttr
);
[C++]
MemberInfo* GetMember(
   String* name,
 BindingFlags bindingAttr
) [];
[JScript]
function GetMember(
   name : String,
 bindingAttr : BindingFlags
) : MemberInfo[];

Parameters

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

Return Value

An array of MemberInfo objects matching the name parameter.

Remarks

The GetMember method retrieves an array of 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

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

IReflect Interface | IReflect Members | System.Reflection Namespace | BindingFlags

Show:
© 2014 Microsoft