System::Reflection::PropertyInfo-klass

PropertyInfo class

Representerar egenskapsinformation.

class PropertyInfo : public System::Reflection::MemberInfo

Metoder

MetodBeskrivning
get_MemberType() const overrideHämtar ett MemberTypes‑värde som indikerar att denna medlem är en egenskap.
get_PropertyType()Hämtar egenskapstyp.
GetValue(System::SharedPtr<System::Object>)Hämtar egenskapsvärde från ett specifikt objekt.
GetValue(System::SharedPtr<System::Object>, System::ArrayPtr<System::SharedPtr<System::Object>>)Hämtar egenskapsvärde från ett specifikt objekt.
PropertyInfo(String, System::SharedPtr<PropertyType>(ClassType::*)() const)Konstruktor. Egenskap med endast const getter.
PropertyInfo(String, System::SharedPtr<PropertyType>(ClassType::*)())Konstruktor. Egenskap med endast non-const getter.
PropertyInfo(String, void(ClassType::)(System::SharedPtr<PropertyType>), System::SharedPtr<PropertyType>(ClassType::)() const)Konstruktor.
PropertyInfo(String, void(ClassType::)(System::Nullable<NullableType>), System::Nullable<NullableType>(ClassType::)())Konstruktor. Nullable‑egenskap med både setter och getter.
PropertyInfo(String, void(ClassType::)(System::Nullable<NullableType>), System::Nullable<NullableType>(ClassType::)() const)Konstruktor. Nullable‑egenskap med endast const getter.
PropertyInfo(String, void(ClassType::)(System::SharedPtr<PropertyType>), System::SharedPtr<PropertyType>(ClassType::)())Konstruktor. Object‑egenskap med endast getter.
PropertyInfo(String, void(ClassType::)(System::String), System::String(ClassType::)())Skapar sträng‑egenskapsinformation.
PropertyInfo(String, void(ClassType::)(System::String), System::String(ClassType::)() const)Skapar sträng‑egenskapsinformation från klass med const getter.
PropertyInfo(String, void(ClassType::)(System::Decimal), System::Decimal(ClassType::)())Skapar Decimal‑egenskapsinformation.
PropertyInfo(String, void(ClassType::)(System::Decimal), System::Decimal(ClassType::)() const)Skapar Decimal‑egenskapsinformation från klass med const getter.
PropertyInfo(String, void(ClassType::)(bool), bool(ClassType::)())Skapar information om boolesk egenskap.
PropertyInfo(String, void(ClassType::)(bool), bool(ClassType::)() const)Skapar information om boolesk egenskap från klass med const‑getter.
PropertyInfo(String, void(ClassType::)(int64_t), int64_t(ClassType::)())Skapar information om int64_t‑egenskap.
PropertyInfo(String, void(ClassType::)(int64_t), int64_t(ClassType::)() const)Skapar information om int64_t‑egenskap från klass med const‑getter.
set_PropertyType(const TypeInfo&)Ställer in typen för denna egenskap.
SetValue(System::SharedPtr<System::Object>, System::SharedPtr<System::Object>)Sätter egenskapsvärde till ett specifikt objekt.
SetValue(System::SharedPtr<System::Object>, System::SharedPtr<System::Object>, System::ArrayPtr<System::SharedPtr<System::Object>>)Sätter egenskapsvärde till ett specifikt objekt.

Se även