Класс 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‑геттером.
PropertyInfo(String, System::SharedPtr<PropertyType>(ClassType::*)())Конструктор. Свойство только с non-const‑геттером.
PropertyInfo(String, void(ClassType::)(System::SharedPtr<PropertyType>), System::SharedPtr<PropertyType>(ClassType::)() const)Конструктор.
PropertyInfo(String, void(ClassType::)(System::Nullable<NullableType>), System::Nullable<NullableType>(ClassType::)())Конструктор. Свойство Nullable с сеттером и геттером.
PropertyInfo(String, void(ClassType::)(System::Nullable<NullableType>), System::Nullable<NullableType>(ClassType::)() const)Конструктор. Свойство Nullable только с const‑геттером.
PropertyInfo(String, void(ClassType::)(System::SharedPtr<PropertyType>), System::SharedPtr<PropertyType>(ClassType::)())Конструктор. Свойство Object только с геттером.
PropertyInfo(String, void(ClassType::)(System::String), System::String(ClassType::)())Создаёт информацию о строковом свойстве.
PropertyInfo(String, void(ClassType::)(System::String), System::String(ClassType::)() const)Создаёт информацию о строковом свойстве из класса с const‑геттером.
PropertyInfo(String, void(ClassType::)(System::Decimal), System::Decimal(ClassType::)())Создаёт информацию о свойстве Decimal.
PropertyInfo(String, void(ClassType::)(System::Decimal), System::Decimal(ClassType::)() const)Создаёт информацию о свойстве Decimal из класса с const‑геттером.
PropertyInfo(String, void(ClassType::)(bool), bool(ClassType::)())Создаёт информацию о булевом свойстве.
PropertyInfo(String, void(ClassType::)(bool), bool(ClassType::)() const)Создаёт информацию о булевом свойстве из класса с const‑геттером.
PropertyInfo(String, void(ClassType::)(int64_t), int64_t(ClassType::)())Создаёт информацию о свойстве типа int64_t.
PropertyInfo(String, void(ClassType::)(int64_t), int64_t(ClassType::)() const)Создаёт информацию о свойстве типа int64_t из класса с const‑геттером.
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>>)Устанавливает значение свойства в конкретный объект.

См. также