DMCatalogItem (Object)

Member of:

DMCatalogItems collection

Description:

Represents a table in the Table Catalog.

Example:

This example shows how to write all data about the tables in the Table Catalog to the Console:

with (ActiveDocument.Sections["Query"].DataModel)
{
          var NumTables = Catalog.CatalogItems.Count
          for (I = 1; I <= NumTables;I++)
          {
                     OutputString = "Database Name =" + 
                     Catalog.CatalogItems[I].DatabaseName
                     OutputString = OutputString +":Database Owner=" + 
                     Catalog.CatalogItems[I].Owner
                     OutputString = OutputString +":Table Name=" +
                     Catalog.CatalogItems[I].Name
                     Console.Write(OutputString+"\r\n")
         }
}

Methods:

None

Properties:

Read-only: DatabaseName As String, Property Name As String, Property Owner As String