VistaDB 6
VistaDB.DDA Namespace / IVistaDBTableNameCollection Interface
Members Example

In This Topic
    IVistaDBTableNameCollection Interface
    In This Topic
    List of Tables in the current connection as a strongly typed list. This is faster for use in Foreach loops than the ArrayList version.
    Public Interface IVistaDBTableNameCollection 
    Dim instance As IVistaDBTableNameCollection
    public interface IVistaDBTableNameCollection 
    IVistaDBDatabase db = DDAUtils.BuildTestDatabase(ref DDAObj, dbname, false, null, false); 
    IVistaDBTableCollection tableList = db.GetTables();
    foreach (string table in tableList)
       Console.WriteLine("Table is named: " + table);

    Target Platforms: 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

    See Also