FireDAC.Phys.MongoDBWrapper.TMongoConnection.GetCollection

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetCollection(const ADBName, AColName: String): TMongoCollection;

C++

TMongoCollection* __fastcall GetCollection(const System::UnicodeString ADBName, const System::UnicodeString AColName);

Properties

Type Visibility Source Unit Parent
function public
FireDAC.Phys.MongoDBWrapper.pas
FireDAC.Phys.MongoDBWrapper.hpp
FireDAC.Phys.MongoDBWrapper TMongoConnection

Description

Returns a collection of the MongoDB server that has the specified name and exists in a database with the specified name.

You are responsible for destroying any collection object that you obtain from GetCollection. If you want the connection object to be the owner of the collection object, obtain your collection object from the Collections property instead.

See Also