NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Type.GetMember (String, MemberTypes, BindingFlags)

When implemented by a derived class, searches for the specified members of the specified member type, using the specified binding constraints.

[Visual Basic]
Overloads Overridable Public Function GetMember( _
   ByVal name As String, _
   ByVal type As MemberTypes, _
   ByVal bindingAttr As BindingFlags _
) As MemberInfo ()
[C#]
public virtual MemberInfo[] GetMember(
   string name,
   MemberTypes type,
   BindingFlags bindingAttr
);
[C++]
public: virtual MemberInfo* GetMember(
   String* name,
   MemberTypes type,
   BindingFlags bindingAttr
) [];
[JScript]
public function GetMember(
   name : String,
   type : MemberTypes,
   bindingAttr : BindingFlags
) : MemberInfo[];

Parameters

name
The String containing the name of the members to get.
type
The Type of member to search for.
bindingAttr
A bit mask comprised of one or more BindingFlags that specify how the search is conducted.

-or-

zero, to conduct a case-sensitive search for public members.

Return Value

An array of MemberInfo objects representing the public members with the specified name, if found; otherwise, a null reference (in Visual Basic Nothing).

Exceptions

Exception Type Condition
ArgumentNullException name is a null reference (Nothing).
SecurityException The requested member is non-public and the caller does not have ReflectionPermission to reflect non-public members outside the current assembly.

Remarks

Abstract. This method must be implemented by a derived class.

Members include properties, methods, fields, events, and so on.

This method searches the current classes and its base classes.

The following BindingFlags filter flags can be used to define which members should be included in the search:

The following BindingFlags modifier flags can be used to change how the search works:

See BindingFlags for more information.Class initializers are available through GetMember, GetMembers, FindMembers, and GetConstructors.

See Also

Type Class | Type Members | System Namespace | Type.GetMember Overload List