'Declaration Public Sub Fill( _ ByVal dataSource As FlatDataSource, _ Optional ByVal cubeGenerationParams As CubeGenerationParameters, _ Optional ByVal fieldAttributeCallback As Func(Of String,Attribute()) _ )
The Connection must be set to an open database connection before calling this method; failure to do so will result in an exception being thrown.
The Fill method is functionally similar to the DbDataAdapter's Fill method. After establishing a connection to a database, and defining a record selection criteria, use the Fill method to populate the FlatDataSource with row data obtained from the database select query.
Note that the Fill method executes synchronously, and will not block the calling thread, but the specified FlatDataSource instance will not be available to provide data until the InitializeAsyncCompleted event occurs.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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