This example demonstrates how to modify the list of data providers available on the connection parameters configuration page of the Data Source Wizard when customizing the Data Source Wizard by implementing the IWizardCustomizationService interface.
To obtain the list of available data providers from the internal service container, use the IWizardCustomization.Resolve method. You can delete elements from this list to remove undesired data providers, as well as append new elements to add custom data providers. In this example, all default data providers are removed from the list and a custom provider is added.
For a custom data provider, specify the connection parameters strategy. The connection parameters strategy is represented by an object implementing the IConnectionParametersStrategy interface and defines which connection settings are required by a data provider, how user input for these settings is handled on the connection parameters configuration page of the Data Source Wizard, as well as how a data source object is created based on these settings.
For a general code example on how to customize the Data Source Wizard using the IWizardCustomizationService interface, see How to customize the New Report Wizard (introduced in the 2014 vol.1 release) in the End-User Designer.