When implemented by a derived class, searches for the members defined for the current Type, using the specified binding constraints.
[Visual Basic] Overloads MustOverride Public Function GetMembers( _ ByVal bindingAttr As BindingFlags _ ) As MemberInfo () [C#] public abstract MemberInfo[] GetMembers( BindingFlags bindingAttr ); [C++] public: virtual MemberInfo* GetMembers( BindingFlags bindingAttr ) [] = 0; [JScript] public abstract function GetMembers( bindingAttr : BindingFlags ) : MemberInfo[];
-or-
zero, to conduct a case-sensitive search for public members.
An array of MemberInfo objects representing all members defined for the current Type that match the specified binding constraints.
-or-
An empty array of type MemberInfo, if no members are defined for the current Type, or if none of the defined members match the binding constraints.
Abstract. This method must be implemented by a derived class.
Members include properties, methods, fields, events, and so on.
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:
Calling this method with only the Public flag or only the NonPublic flag will return the specified members and does not require any other flags.
See BindingFlags for more information.Class initializers are available through GetMember, GetMembers, FindMembers, and GetConstructors.
Type Class | Type Members | System Namespace | Type.GetMembers Overload List