record TgoBsonValueHelper

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TgoBsonValueHelper = record helper for TgoBsonValue

Description

Adds methods to TgoBsonValue

Overview

Methods

function ToBsonArray: TgoBsonArray; inline;
function AsBsonArray: TgoBsonArray; inline;
function AsBsonBinaryData: TgoBsonBinaryData; inline;
function ToBsonDocument: TgoBsonDocument; inline;
function AsBsonDocument: TgoBsonDocument; inline;
function AsBsonJavaScript: TgoBsonJavaScript; inline;
function AsBsonJavaScriptWithScope: TgoBsonJavaScriptWithScope; inline;
function AsBsonMaxKey: TgoBsonMaxKey; inline;
function AsBsonMinKey: TgoBsonMinKey; inline;
function AsBsonNull: TgoBsonNull; inline;
function AsBsonUndefined: TgoBsonUndefined; inline;
function AsBsonRegularExpression: TgoBsonRegularExpression; inline;
function AsBsonSymbol: TgoBsonSymbol; inline;
function AsBsonDateTime: TgoBsonDateTime; inline;
function AsBsonTimestamp: TgoBsonTimestamp; inline;

Description

Methods

function ToBsonArray: TgoBsonArray; inline;

Returns the value as a BSON array. Returns an empty array of the value isn't a BSON array

function AsBsonArray: TgoBsonArray; inline;

Returns the value as a BSON array.

Exceptions raised
EIntfCastError
if this value isn't a BSON array
function AsBsonBinaryData: TgoBsonBinaryData; inline;

Returns the value as a BSON binary.

Exceptions raised
EIntfCastError
if this value isn't a BSON binary
function ToBsonDocument: TgoBsonDocument; inline;

Returns the value as a BSON document. Returns an empty document of the value isn't a BSON document

function AsBsonDocument: TgoBsonDocument; inline;

Returns the value as a BSON document.

Exceptions raised
EIntfCastError
if this value isn't a BSON document
function AsBsonJavaScript: TgoBsonJavaScript; inline;

Returns the value as a BSON JavaScript object.

Exceptions raised
EIntfCastError
if this value isn't a BSON JavaScript object
function AsBsonJavaScriptWithScope: TgoBsonJavaScriptWithScope; inline;

Returns the value as a BSON JavaScript-with-scope object.

Exceptions raised
EIntfCastError
if this value isn't a BSON JavaScript-with-scope object
function AsBsonMaxKey: TgoBsonMaxKey; inline;

Returns the value as a BSON MaxKey.

Exceptions raised
EIntfCastError
if this value isn't a BSON MaxKey
function AsBsonMinKey: TgoBsonMinKey; inline;

Returns the value as a BSON MinKey.

Exceptions raised
EIntfCastError
if this value isn't a BSON MinKey
function AsBsonNull: TgoBsonNull; inline;

Returns the value as a BSON Null.

Exceptions raised
EIntfCastError
if this value isn't a BSON Null
function AsBsonUndefined: TgoBsonUndefined; inline;

Returns the value as a BSON Undefined.

Exceptions raised
EIntfCastError
if this value isn't a BSON Undefined
function AsBsonRegularExpression: TgoBsonRegularExpression; inline;

Returns the value as a BSON Regular Expression.

Exceptions raised
EIntfCastError
if this value isn't a BSON Regular Expression
function AsBsonSymbol: TgoBsonSymbol; inline;

Returns the value as a BSON Symbol.

Exceptions raised
EIntfCastError
if this value isn't a BSON Symbol
function AsBsonDateTime: TgoBsonDateTime; inline;

Returns the value as a BSON DateTime.

Exceptions raised
EIntfCastError
if this value isn't a BSON DateTime
function AsBsonTimestamp: TgoBsonTimestamp; inline;

Returns the value as a BSON Timestamp.

Exceptions raised
EIntfCastError
if this value isn't a BSON Timestamp

Generated by P2PasDoc 0.13.0 on 2017-04-25 12:54:26