Partilhar via


CatalogsDataSet Class

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

Access the CatalogsDataSet..::.Catalog values in the CatalogsDataSet.

Namespace:  Microsoft.CommerceServer.Catalog
Assembly:  Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)

Syntax

'Declaration
<SerializableAttribute> _
Public Class CatalogsDataSet _
    Inherits DataSet
'Usage
Dim instance As CatalogsDataSet
[SerializableAttribute]
public class CatalogsDataSet : DataSet
[SerializableAttribute]
public ref class CatalogsDataSet : public DataSet
public class CatalogsDataSet extends DataSet

Remarks

Returns the dataset containing the Catalog values. This allows you to get the Catalog values.

Examples

// Returns a CatalogsDataSet containing catalogs in the catalog system
internal CatalogsDataSet GetCatalogsDataset()
{
  // Get the list of catalogs
  CatalogsDataSet productCatalogs = catalogContext.GetCatalogs();
  // You can iterate through the productCatalogs collection 
  foreach (CatalogsDataSet.Catalog productCatalog in productCatalogs.Catalogs)
  {
    Console.WriteLine(productCatalog.Currency);
    Console.WriteLine(productCatalog.VariantId);
    Console.WriteLine(productCatalog.IsVirtualCatalog);
  }
  return productCatalogs;
}

Inheritance Hierarchy

System..::.Object
  System.ComponentModel..::.MarshalByValueComponent
    System.Data..::.DataSet
      Microsoft.CommerceServer.Catalog..::.CatalogsDataSet

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

CatalogsDataSet Members

Microsoft.CommerceServer.Catalog Namespace