Click or drag to resize
TypeGetMember Method (String, MemberTypes, BindingFlags)
Searches for the specified members of the specified member type, using the specified binding constraints.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
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: MemberInfo
An array of MemberInfo objects representing the public members with the specified name, if found; otherwise, an empty array.
Exceptions
ExceptionCondition
ArgumentNullExceptionname is null.
NotSupportedExceptionA derived class must provide an implementation.
See Also