IReflect.GetProperties(BindingFlags) 方法

定義

擷取 PropertyInfo 物件陣列,對應於所有公用屬性或所有目前類別的屬性。

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

參數

bindingAttr
BindingFlags

繫結屬性,用來控制搜尋。

傳回

PropertyInfo[]

所有屬性的 PropertyInfo 物件陣列,定義於反映物件上。

適用於

另請參閱