REST.JsonReflect.JSONBooleanAttributeValue

De RAD Studio API Documentation
Aller à : navigation, rechercher

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);

Propriétés

Type Visibilité  Source Unité  Parent
function public
REST.JsonReflect.pas
REST.JsonReflect.hpp
REST.JsonReflect REST.JsonReflect


Description

Renvoie la valeur d'un attribut booléen de la classe AttributeClass dans rttiObject ou DefaultValue si aucun attribut de la classe AttributeClass n'est défini dans rttiObject.

AttributeClass doit être une sous-classe de JSONBooleanAttribute.

Voir aussi