System.JSON.Types.TJsonOid

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

  TJsonOid = record
  private
    function GetAsString: String;
    procedure SetAsString(const Value: String);
    function GetAsBytes: TBytes;
    procedure SetAsBytes(const Value: TBytes);
  public
    Bytes: array [0 .. 12-1] of Byte;
    constructor Create(const AOid: TBytes); overload;
    constructor Create(const AOid: String); overload;
    property AsString: String read GetAsString write SetAsString;
    property AsBytes: TBytes read GetAsBytes write SetAsBytes;
  end;

C++

struct DECLSPEC_DRECORD TJsonOid
{
private:
    System::UnicodeString __fastcall GetAsString(void);
    void __fastcall SetAsString(const System::UnicodeString Value);
#ifndef _WIN64
    System::DynamicArray<System::Byte> __fastcall GetAsBytes(void);
    void __fastcall SetAsBytes(const System::DynamicArray<System::Byte> Value);
#else /* _WIN64 */
    System::TArray__1<System::Byte> __fastcall GetAsBytes(void);
    void __fastcall SetAsBytes(const System::TArray__1<System::Byte> Value);
#endif /* _WIN64 */
public:
    System::StaticArray<System::Byte, 12> Bytes;
#ifndef _WIN64
    __fastcall TJsonOid(const System::DynamicArray<System::Byte> AOid)/* overload */;
#else /* _WIN64 */
    __fastcall TJsonOid(const System::TArray__1<System::Byte> AOid)/* overload */;
#endif /* _WIN64 */
    __fastcall TJsonOid(const System::UnicodeString AOid)/* overload */;
    __property System::UnicodeString AsString = {read=GetAsString, write=SetAsString};
#ifndef _WIN64
    __property System::DynamicArray<System::Byte> AsBytes = {read=GetAsBytes, write=SetAsBytes};
#else /* _WIN64 */
    __property System::TArray__1<System::Byte> AsBytes = {read=GetAsBytes, write=SetAsBytes};
#endif /* _WIN64 */
    TJsonOid() {}
};

Properties

Type Visibility Source Unit Parent
record
struct
public
System.JSON.Types.pas
System.JSON.Types.hpp
System.JSON.Types System.JSON.Types

Description

TJsonOid represents an extended JSON Oid data type.

For further details, see extended JSON Oid

See Also