ActiveDatabaseSoftware.ActiveQueryBuilder Namespace > QueryBuilder Class : DataSourceAdding Event |
'Declaration Public Event DataSourceAdding As DataSourceAddingEventHandler
'Usage Dim instance As QueryBuilder Dim handler As DataSourceAddingEventHandler AddHandler instance.DataSourceAdding, handler
public event DataSourceAddingEventHandler DataSourceAdding
public: __event DataSourceAddingEventHandler* DataSourceAdding
The pos parameter indicates position within the Design Area for the new DataSource.
The fromObject parameter defines object being added to the query. It can be one of the following types:
- SQLFromFunction in case of adding stored procedure or function. It has Name and Params properties to indentify itself.
- SQLFromObject in case of adding table, view, synonym or CTE to the query. It has the Name.QualifiedName property to retrieve the name of database object. It's CTEObject property refers to the CTE sub-query object in case of adding common table expression to the query.
- SQLFromQuery in case of adding a derived table to the query.
Set the abort parameter to true to deny adding the DataSource to the query.