Click or drag to resize
TypeGetMember Method (String, BindingFlags)
Searches for the specified members, 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,
	BindingFlags bindingAttr
)

Parameters

name
Type: SystemString
The string containing the name of the members to get.
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.

Implements

IReflectGetMember(String, BindingFlags)
Exceptions
ExceptionCondition
ArgumentNullExceptionname is null.
See Also