Data.Bind.ObjectScope.RegisterValueGenerator
Delphi
procedure RegisterValueGenerator(const AName: string; AFieldTypes: TGeneratorFieldTypes; AClass: TValueGeneratorClass; const AFrameWorkExt: string);
procedure RegisterValueGenerator(const AName: string; AFieldTypes: TGeneratorFieldTypes; const ADescription: TValueGeneratorDescription; const AFrameWorkExt: string);
C++
extern DELPHI_PACKAGE void __fastcall RegisterValueGenerator(const System::UnicodeString AName, TGeneratorFieldTypes AFieldTypes, TValueGeneratorClass AClass, const System::UnicodeString AFrameworkExt = System::UnicodeString())/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Data.Bind.ObjectScope.pas Data.Bind.ObjectScope.hpp |
Data.Bind.ObjectScope | Data.Bind.ObjectScope |
Description
Registers a value generator based on the given parameters.
There are two RegisterValueGenerator overloaded methods. Both of them accept the AName
, AFieldTypes
, and AFrameWorkExt
parameters, which specify the name of the generator, the field types, and the working framework (for instance, vcl, fmx). The first overloaded method accepts the AClass
parameter, which is the metaclass for the TValueGenerator class, instead of the ADescription
parameter, which is accepted by the second overloaded method.