ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Rendering Assembly / GrapeCity.ActiveReports.Core.Rendering.Data Namespace / IDbConnectionAdapterWithDataSource Interface / SetDataSourceLocator Method
The database connection command that needs to be assigned a data source.
The function which returns the data source for the command.

In This Topic
SetDataSourceLocator Method
In This Topic
Sets the data source getter function for the specified database connection command.
Syntax
'Declaration
 
Function SetDataSourceLocator( _
   ByVal command As IDbConnection, _
   ByVal func As Action(Of LocateDataSourceArgs) _
) As Boolean
 

Parameters

command
The database connection command that needs to be assigned a data source.
func
The function which returns the data source for the command.

Return Value

true if the locator is set successfully; otherwise, false.
See Also