IReflect.GetProperties(BindingFlags) 方法

定義

擷取 PropertyInfo 物件陣列,對應於所有公用屬性或所有目前類別的屬性。Retrieves an array of PropertyInfo objects corresponding to all public properties or to all properties of the current class.

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

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

傳回

所有屬性的 PropertyInfo 物件陣列,定義於反映物件上。An array of PropertyInfo objects for all the properties defined on the reflection object.

適用於

另請參閱