Version

GetRecordsFromDataItems Method

Gets the DataRecords associated with specific items in the DataSource.
Syntax
'Declaration
 
Public Function GetRecordsFromDataItems( _
   ByVal dataItems() As Object, _
   ByVal recursive As Boolean _
) As DataRecord()
public DataRecord[] GetRecordsFromDataItems( 
   object[] dataItems,
   bool recursive
)

Parameters

dataItems
An array of objects from the underlying data source
recursive
If true will check all descendant records as well for matches.

Return Value

An array of the associated DataRecords for the data items that were found.
Remarks
Since this may be an expensive operation depending on the size and structure of the data, the logic first checks all of the DataRecords at the root level and if all matches are not found then checks all of the descendant records.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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

See Also