IReflect.GetMembers(BindingFlags) 方法

定義

擷取 MemberInfo 物件陣列,對應至所有公用成員或所有目前類別的成員。Retrieves an array of MemberInfo objects that correspond either to all public members or to all members of the current class.

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

參數

bindingAttr
BindingFlags

繫結屬性,用來控制搜尋。The binding attributes used to control the search.

傳回

MemberInfo 物件陣列,包含這個反映物件的所有成員資訊。An array of MemberInfo objects containing all the member information for this reflection object.

備註

這個方法會使用對應至MemberInfo所有公用成員的系結屬性或目前類別的所有成員, 來抓取物件的陣列。This method retrieves an array of MemberInfo objects by using the binding attribute that corresponds either to all public members or to all members of the current class. 它會傳回針對這個物件所定義之所有成員的陣列。It returns an array of all of the members defined for this object.

適用於

另請參閱