REST.JsonReflect.JSONBooleanAttributeValue
Delphi
function JSONBooleanAttributeValue(rttiObject: TRttiNamedObject; AttributeClass: TClass; DefaultValue: Boolean = false): Boolean;
C++
extern DELPHI_PACKAGE bool __fastcall JSONBooleanAttributeValue(System::Rtti::TRttiNamedObject* rttiObject, System::TClass AttributeClass, bool DefaultValue = false);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | REST.JsonReflect.pas REST.JsonReflect.hpp |
REST.JsonReflect | REST.JsonReflect |
説明
rttiObject
に含まれているクラス AttributeClass
の論理型属性の値を返します。クラス AttributeClass
の属性が rttiObject
内に設定されていない場合は、DefaultValue
を返します。
AttributeClass
は JSONBooleanAttribute のサブクラスでなければなりません。