This documentation is archived and is not being maintained.

IReflect.GetMember Method

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

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)

MemberInfo[] GetMember (
	string name,
	BindingFlags bindingAttr
)
MemberInfo[] GetMember (
	String name, 
	BindingFlags bindingAttr
)
function GetMember (
	name : String, 
	bindingAttr : BindingFlags
) : MemberInfo[]
Not applicable.

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.

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.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0
Show: