FireDAC.Phys.MongoDBWrapper.TMongoDocument.Iterate
Delphi
procedure Iterate(AFunc: TJSONIterator.TIterateFunc);
C++
void __fastcall Iterate(System::Json::Builders::TJSONIterator::_di_TIterateFunc AFunc);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
procedure function |
public | FireDAC.Phys.MongoDBWrapper.pas FireDAC.Phys.MongoDBWrapper.hpp |
FireDAC.Phys.MongoDBWrapper | TMongoDocument |
Description
Iterates through all document elements and calls the specified function for each item.
Iterates through all elements of this document and calls the AFunc function for each element.
AFunc gets a reference to an iterator that points to a current document element. The Iterate method works as follows:
- When
AFuncreturnsTrue, the method continues iterating through the document elements. - When
AFuncreturnsFalse, the method immediately stops the iteration process.