DataLinks

The collection contains DataLink objects that represent descriptors of a link between the feature type and a table of GDB/external database or a cataloged query of external database. To access objects in the collection, use the Item method. The argument of this method is an integer (an ordinal number of a link descriptor). This collection provides continuity of descriptor numbers. The collection is always empty for the feature types of theme work layers because the feature types of work layers cannot be linked with tables from GDB or external databases.

If a layer, the feature type owner (see the FeatureType::Layer property), does not belong to a theme (the Layer::Theme property returns Null), adding a link descriptor to the collection by the Append method causes the feature type to be linked with the specified table or query. The link properties can be changed by corresponding methods of the DataLink object. Removing the link descriptor from the collection by the Delete method will unlink the feature type from the specified table or query.

If a layer, the feature type owner, belongs to a theme (the Layer::Theme property returns the Theme object), removing a link descriptor from the collection by the Delete method causes the feature type to be unlinked from the specified table or query in the scope of theme only. Adding the link descriptor to the collection is possible only for the descriptors removed from the collection earlier.