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

Gets/sets value as embedded array.

property AsArray: TROBSONArray read

AsBinary

Gets/sets value as TBytes.

property AsBinary: TBytes read write

AsBoolean

Gets/sets value as Boolean.

property AsBoolean: Boolean read write

AsBSON

Returns object as BSON bytes

function AsBSON: TBytes

AsDateTime

Gets/sets value as DateTime.

property AsDateTime: TDateTime read write

AsDocument

Gets/sets value as embedded document.

property AsDocument: TROBSONDocument read

AsDouble

Gets/sets value as Double.

property AsDouble: Double read write

AsGuid

Gets/sets value as Guid.

property AsGuid: TGuid read write

AsInt64

Gets/sets value as Int64.

property AsInt64: Int64 read write

AsInteger

Gets/sets value as Integer.

property AsInteger: Integer read write

AsString

Gets/sets value as String.

property AsString: UnicodeString read write

AsUTCDateTime

Gets/sets value as UTC datetime.

property AsUTCDateTime: TDateTime read write

AsVariant

Gets/sets value as Variant.

property AsVariant: Variant read write

Clear

Clears value

procedure Clear

IsArray

Checks if value is embedded array

function IsArray: Boolean

IsDocument

Checks if value is embedded document

function IsDocument: Boolean

IsGuid

Checks if value is Guid

function IsGuid: Boolean

IsNull

Checks if value is Null

function IsNull: Boolean

Name

Name

property Name: UnicodeString read write

Type_

Returns type of Value

property Type_: TROBSONType read

 

AsArray

Gets/sets value as embedded array.

property AsArray: TROBSONArray read

AsBinary

Gets/sets value as TBytes.

property AsBinary: TBytes read write

AsBoolean

Gets/sets value as Boolean.

property AsBoolean: Boolean read write

AsDateTime

Gets/sets value as DateTime.

property AsDateTime: TDateTime read write

AsDocument

Gets/sets value as embedded document.

property AsDocument: TROBSONDocument read

AsDouble

Gets/sets value as Double.

property AsDouble: Double read write

AsGuid

Gets/sets value as Guid.

property AsGuid: TGuid read write

AsInt64

Gets/sets value as Int64.

property AsInt64: Int64 read write

AsInteger

Gets/sets value as Integer.

property AsInteger: Integer read write

AsString

Gets/sets value as String.

property AsString: UnicodeString read write

AsUTCDateTime

Gets/sets value as UTC datetime.

property AsUTCDateTime: TDateTime read write

AsVariant

Gets/sets value as Variant.

property AsVariant: Variant read write

Name

Name

property Name: UnicodeString read write

Type_

Returns type of Value

property Type_: TROBSONType read

 

AsBSON

Returns object as BSON bytes

function AsBSON: TBytes

Clear

Clears value

procedure Clear

IsArray

Checks if value is embedded array

function IsArray: Boolean

IsDocument

Checks if value is embedded document

function IsDocument: Boolean

IsGuid

Checks if value is Guid

function IsGuid: Boolean

IsNull

Checks if value is Null

function IsNull: Boolean