IReflect.GetProperties(BindingFlags) IReflect.GetProperties(BindingFlags) IReflect.GetProperties(BindingFlags) IReflect.GetProperties(BindingFlags) Method

定义

检索与所有公共属性或当前类的所有属性对应的 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 BindingFlags BindingFlags BindingFlags

用于控制搜索的绑定属性。The binding attribute used to control the search.

返回

在反射对象上定义的所有属性的 PropertyInfo 对象数组。An array of PropertyInfo objects for all the properties defined on the reflection object.

适用于

另请参阅