Επεξεργασία

Κοινή χρήση μέσω


TypeBuilder.GetMember(String, MemberTypes, BindingFlags) Method

Definition

Returns all the public and non-public members declared or inherited by this type, as specified.

public:
 override cli::array <System::Reflection::MemberInfo ^> ^ GetMember(System::String ^ name, System::Reflection::MemberTypes type, System::Reflection::BindingFlags bindingAttr);
public override System.Reflection.MemberInfo[] GetMember (string name, System.Reflection.MemberTypes type, System.Reflection.BindingFlags bindingAttr);
override this.GetMember : string * System.Reflection.MemberTypes * System.Reflection.BindingFlags -> System.Reflection.MemberInfo[]
Public Overrides Function GetMember (name As String, type As MemberTypes, bindingAttr As BindingFlags) As MemberInfo()

Parameters

name
String

The name of the member.

type
MemberTypes

The type of the member to return.

bindingAttr
BindingFlags

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

Returns

Returns an array of MemberInfo objects representing the public and non-public members defined on this type if nonPublic is used; otherwise, only the public members are returned.

Exceptions

This method is not implemented for incomplete types.

Remarks

Retrieve the type using Type.GetType or Assembly.GetType and use reflection on the retrieved type.

Applies to