Indicates whether a dataset is linked to a specified data source.
function IsLinkedTo(DataSource: TDataSource): Boolean;
Call IsLinkedTo to verify that a dataset is linked to a specific data source. DataSource is the name of the data source against which to test.
Note: IsLinkedTo is mainly provided for developers deriving custom components based on TDataSet. It is not intended or needed for general data access.
If the datasource already provides data from the dataset or one of its nested dataset fields (or a nested dataset nested in a dataset field...), IsLinkedTo returns True. If the datasource provides data from some other dataset, or if the data source does not already have a dataset of its own, IsLinkedTo returns False.