Partilhar via


CatalogSetsDataSet

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

The CatalogSetsDataSet class contains information about catalog sets in the Catalog System. You can access the DataRowCollection by using the CatalogSets property. You can access each row in the collection by using the properties of the CatalogSetsDataSet..::.CatalogSet class.

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

Property

Description

CatalogSetDescription

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

CatalogSetId

This property is for internal use only and should not be used.

CatalogSetName

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

Expression

Gets or sets a string that contains the expressions used to search a catalog.

Constraints

The CatalogSetsDataSet class does not define any constraints.

Using the CatalogSetsDataSet Class

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

public static void UseDataset(CatalogContext catalogContext)
{
    // Iterate through the catalog sets in the Catalog System to access attributes.
    CatalogSetsDataSet catalogSet = catalogContext.CatalogSetsContext.GetCatalogSets().DataSet;
    int count = catalogSet.CatalogSets.Count;
    for (int setIndex = 0; setIndex < count; setIndex++)
    {
        string catalogSetName = catalogSet.CatalogSets[setIndex].CatalogSetName;
        string catalogSetDescription = catalogSet.CatalogSets[setIndex].CatalogSetDescription;
    }
}

The CatalogSetsDataSetSchema Class

The CatalogSetsDataSetSchema 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

Typed Datasets in the Inventory System