The TDADriverForeignKeyCollection class represents the collection of Foreign Key of the specified connection type. The TDADriverForeignKeyCollection class is used by all database driver types (BDE, AnyDAC, etc.).

The TDADriverForeignKeyCollection class is used to get the collection of Foreign Key of the specified connection type in Schema Modeler.

Normally, you do not need to use this class directly, although this class can be used while getting acspecified custom Foreign Key collection in the custom Schema diagram.




Gets the single Foreign Key with the specified index from the Foreign Key collection.

property ForeignKeys[Index: Integer]: TDADriverForeignKey read write

Instance Methods

constructor Create

Creates a new instance.

constructor Create(aOwner: TPersistent)


  • aOwner: Specified owner of the Foreign Key collection

Add  reintroduce overload

Adds a new Foreign Key to the Foreign Key collection and returns the new Foreign Key item.

function Add: TDADriverForeignKey

GetCount  protected    (declared in TInterfacedCollection)

Always returns -1.

function GetCount: Integer

QueryInterface  protected stdcall    (declared in TInterfacedCollection)

Returns a reference to a specified interface if the object supports that interface. This is one of the methods introduced by the IUnknown interface.

function QueryInterface(const IID: TGUID; out Obj: ): HResult


  • IID: Identifier of the interface to return
  • Obj: Variable to store the returned interface reference to