System.JSON.Builders.TJSONIterator.TIterateFunc

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TIterateFunc = reference to function(AIter: TJSONIterator): Boolean;

C++

__interface TIterateFunc  : public System::IInterface

Properties

Type Visibility Source Unit Parent
anonMethod
class
public
System.JSON.Builders.pas
System.JSON.Builders.hpp
System.JSON.Builders TJSONIterator

Description

Reference to a function, which is used as an input argument of the TJSONIterator.Iterate and TMongoDocument.Iterate methods.

When iterating through documents, the TJSONIterator.Iterate and TMongoDocument.Iterate methods call this function for each JSON document item. This function receives a reference to a JSON iterator, which can be used to read properties of a current JSON element.

When this function returns True, the Iterate methods continue the iteration process. Otherwise, the methods immediately stop the iteration process.


See Also

Sample Projects