Edit

Share via


EnumBuilder.GetMembers(BindingFlags) Method

Definition

Returns the specified members declared or inherited by this type.

public:
 override cli::array <System::Reflection::MemberInfo ^> ^ GetMembers(System::Reflection::BindingFlags bindingAttr);
public override System.Reflection.MemberInfo[] GetMembers (System.Reflection.BindingFlags bindingAttr);
override this.GetMembers : System.Reflection.BindingFlags -> System.Reflection.MemberInfo[]
Public Overrides Function GetMembers (bindingAttr As BindingFlags) As MemberInfo()

Parameters

bindingAttr
BindingFlags

This must be a bit flag from BindingFlags : InvokeMethod, NonPublic, and so on.

Returns

Returns an array of MemberInfo objects representing the public and non-public members declared or inherited by this type. An empty array is returned if there are no matching members.

Exceptions

This method is not currently supported in types that are not complete.

Remarks

As a workaround, to retrieve the members of a finished type, retrieve the type using Type.GetType or Assembly.GetType and use reflection on the retrieved type.

Applies to