System::Reflection::PropertyInfo 类

PropertyInfo class

表示属性信息。

class PropertyInfo : public System::Reflection::MemberInfo

方法

方法描述
get_MemberType() const override获取一个指示此成员为属性的 MemberTypes 值。
get_PropertyType()获取属性类型。
GetValue(System::SharedPtr<System::Object>)从特定对象获取属性值。
GetValue(System::SharedPtr<System::Object>, System::ArrayPtr<System::SharedPtr<System::Object>>)从特定对象获取属性值。
PropertyInfo(String, System::SharedPtr<PropertyType>(ClassType::*)() const)构造函数。仅具有 const getter 的属性。
PropertyInfo(String, System::SharedPtr<PropertyType>(ClassType::*)())构造函数。仅具有非 const getter 的属性。
PropertyInfo(String, void(ClassType::)(System::SharedPtr<PropertyType>), System::SharedPtr<PropertyType>(ClassType::)() const)构造函数。
PropertyInfo(String, void(ClassType::)(System::Nullable<NullableType>), System::Nullable<NullableType>(ClassType::)())构造函数。Nullable 属性,具有 setter 和 getter。
PropertyInfo(String, void(ClassType::)(System::Nullable<NullableType>), System::Nullable<NullableType>(ClassType::)() const)构造函数。Nullable 属性,仅具有 const getter。
PropertyInfo(String, void(ClassType::)(System::SharedPtr<PropertyType>), System::SharedPtr<PropertyType>(ClassType::)())构造函数。Object 属性,仅具有 getter。
PropertyInfo(String, void(ClassType::)(System::String), System::String(ClassType::)())构造字符串属性信息。
PropertyInfo(String, void(ClassType::)(System::String), System::String(ClassType::)() const)从具有 const getter 的类构造字符串属性信息。
PropertyInfo(String, void(ClassType::)(System::Decimal), System::Decimal(ClassType::)())构造 Decimal 属性信息。
PropertyInfo(String, void(ClassType::)(System::Decimal), System::Decimal(ClassType::)() const)从具有 const getter 的类构造 Decimal 属性信息。
PropertyInfo(String, void(ClassType::)(bool), bool(ClassType::)())构造布尔属性信息。
PropertyInfo(String, void(ClassType::)(bool), bool(ClassType::)() const)从具有 const getter 的类构建布尔属性信息。
PropertyInfo(String, void(ClassType::)(int64_t), int64_t(ClassType::)())构建 int64_t 属性信息。
PropertyInfo(String, void(ClassType::)(int64_t), int64_t(ClassType::)() const)从具有 const getter 的类构建 int64_t 属性信息。
set_PropertyType(const TypeInfo&)设置此属性的类型。
SetValue(System::SharedPtr<System::Object>, System::SharedPtr<System::Object>)将属性值设置到特定对象。
SetValue(System::SharedPtr<System::Object>, System::SharedPtr<System::Object>, System::ArrayPtr<System::SharedPtr<System::Object>>)将属性值设置到特定对象。

另见