You are here: C++ Support Classes > dtSearch Namespace > Classes > DIndexJob Class > DIndexJob::AttachDataSource Method
Close
dtSearch Text Retrieval Engine Programmer's Reference
DIndexJob::AttachDataSource Method

Attach a data source to the index job. See dtsDataSource and DDataSourceBase

Syntax
C++
void AttachDataSource(DDataSourceBase * ds, int fShouldDelete = false);
Parameters
Description
DDataSourceBase * ds
Data source to attach.
int fShouldDelete = false
If the fShouldDelete flag is true, the DIndexJob destructor will delete the pointer in ds.

The data source in ds will be indexed along with any files specified by the FoldersToIndex.