Share via


InventoryCatalogsDataSet

The InventoryCatalogsDataSet class contains information about the inventory catalogs in the Catalog System. You can access the DataRowCollection by using the InventoryCatalogs property. You can access each row in the collection by using the properties of the InventoryCatalogsDataSet..::.InventoryCatalog class.

The following table contains the strongly typed properties in this dataset.

Property

Description

DateCreated

Gets a DateTime value that specifies when the inventory catalog was created.

InventoryCatalogDescription

Gets or sets a string that contains the description of the inventory catalog.

InventoryCatalogName

Gets a string that contains the name of the inventory catalog.

LastModified

Gets a DateTime value that specifies when the inventory catalog was last modified.

Timestamp

Gets a binary value that specifies the last time the row was updated. This value is for internal use only.

Constraints

The InventoryCatalogsDataSet class does not define any constraints.

Using the InventoryCatalogsDataSet Class

The following example demonstrates how to access the properties of the InventoryCatalogsDataSet class.

public static void UseDataset(CatalogContext catalogContext)
{
    // Iterate through the inventory catalogs in the Catalog 
    // System to access attributes.
    InventoryCatalogsDataSet inventoryCatalogs = catalogContext.InventoryContext.GetInventoryCatalogs().DataSet;
    int count = inventoryCatalogs.InventoryCatalogs.Count;
    for (int inventoryCatalogIndex = 0; inventoryCatalogIndex < count; inventoryCatalogIndex++)
    {
        string inventoryCatalogName = inventoryCatalogs.InventoryCatalogs[inventoryCatalogIndex].InventoryCatalogName;
        string inventoryCatalogDescription = inventoryCatalogs.InventoryCatalogs[inventoryCatalogIndex].InventoryCatalogDescription;
    }
}

The InventoryCatalogsDataSetSchema class

The InventoryCatalogsDataSetSchema class provides constants for all the built-in columns in the dataset and defines all the associated methods. The following table contains the associated methods for this class.

Method

Description

IsReadOnlyColumn

Returns true if the columnName in the dataset cannot be updated, or false if the columnName in the dataset can be updated.

IsBuiltInColumn

Returns true if the columnName is a built-in column in the dataset, or false if the columnName is a user-defined property.

See Also

Other Resources

Typed Datasets in the Catalog System