FireDAC.Phys.MongoDBWrapper.TMongoDatabase.GetCollection

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetCollection(const AColName: String): TMongoCollection;

C++

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

Properties

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

Description

Returns a collection of the database that has 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