PrimaryKeys

This collection contains PrimaryKey objects that represent descriptors of primary keys for a table of external database and which include the field – the collection owner. To access objects in the collection, you should use the Item method. Access to collection items is possible both by name and by internal number. The collection does not provide continuity of descriptor internal numbers. Internal numbers of descriptors correspond to internal numbers of descriptors in the Table::PrimaryKeys collection. Persistence of descriptor's internal number is guaranteed within a session of external database. Adding to and removing from the collection is not possible. If an ODBC data source does provide information about primary keys of a table, the collection will be empty. The collection is always empty for GDB tables.