'Declaration Public Event DataSourcesRequested As EventHandler(Of DataSourcesRequestedEventArgs)
public event EventHandler<DataSourcesRequestedEventArgs> DataSourcesRequested
The event handler receives an argument of type DataSourcesRequestedEventArgs containing data related to this event. The following DataSourcesRequestedEventArgs properties provide information specific to this event.
private void RevealView_DataSourcesRequested(object sender, DataSourcesRequestedEventArgs e) { var inMemoryDSI = new RVInMemoryDataSourceItem("employees"); inMemoryDSI.Title = "Employees"; inMemoryDSI.Description = "Employees"; var sqlDs = new RVSqlServerDataSource(); sqlDs.Title = "Clients"; sqlDs.Id = "SqlDataSource1"; sqlDs.Host = "db.mycompany.local"; sqlDs.Port = 1433; sqlDs.Database = "Invoices"; e.Callback(new RevealDataSources( new List<object>() { sqlDs }, new List<object>() { inMemoryDSI }, false)); }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2