TXTextControl.DocumentServer.DataSources.DataSourceManager.LoadObjects Method

Loads a collection implementing the interface IEnumerable as a data source and deduces the data tables, column names and data relations from the public properties and used classes of the first contained object using .NET reflection or, in case of the first contained object being a Dictionary with string keys, from the key names and value types.

Syntax

[C#]
public void LoadObjects(System.Collections.IEnumerable objects);
[Visual Basic]
Public Sub LoadObjects(objects As System.Collections.IEnumerable)
Parameter Description
objects

A collection implementing interface System.Collections.IEnumerable containing objects of any type. The existing tables, ccolumns and data relations are deduced from the the first contained object.

See Also