TROBSONElement

Overview

The TROBSONElement class is created to represent a BSON element, which has name & value. This class is used internally by the BSON (de)serializer inside the TROBSONMessage class.
Users are not required to deal with BSON directly, so there is no need to use this class.

Location

 

AsArray

property AsArray: TROBSONArray read

AsBinary

property AsBinary: TBytes read write

AsBoolean

property AsBoolean: Boolean read write

AsBSON

Returns object as BSON bytes

function AsBSON: TBytes

AsDateTime

property AsDateTime: TDateTime read write

AsDocument

property AsDocument: TROBSONDocument read

AsDouble

property AsDouble: Double read write

AsInt64

property AsInt64: Int64 read write

AsInteger

property AsInteger: Integer read write

AsString

property AsString: UnicodeString read write

AsUTCDateTime

property AsUTCDateTime: TDateTime read write

AsVariant

property AsVariant: Variant read write

Clear

procedure Clear

IsArray

function IsArray: Boolean

IsDocument

function IsDocument: Boolean

IsNull

function IsNull: Boolean

Name

property Name: UnicodeString read write

SetAsNull

procedure SetAsNull

Type_

property Type_: TROBSONType read

 

AsArray

property AsArray: TROBSONArray read

AsBinary

property AsBinary: TBytes read write

AsBoolean

property AsBoolean: Boolean read write

AsDateTime

property AsDateTime: TDateTime read write

AsDocument

property AsDocument: TROBSONDocument read

AsDouble

property AsDouble: Double read write

AsInt64

property AsInt64: Int64 read write

AsInteger

property AsInteger: Integer read write

AsString

property AsString: UnicodeString read write

AsUTCDateTime

property AsUTCDateTime: TDateTime read write

AsVariant

property AsVariant: Variant read write

Name

property Name: UnicodeString read write

Type_

property Type_: TROBSONType read

 

AsBSON

Returns object as BSON bytes

function AsBSON: TBytes

Clear

procedure Clear

IsArray

function IsArray: Boolean

IsDocument

function IsDocument: Boolean

IsNull

function IsNull: Boolean

SetAsNull

procedure SetAsNull