GetCatalogSets Method

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

Returns a CatalogSetCollection representing the catalog sets in the catalog system.

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

Syntax

'Declaration
Public Function GetCatalogSets As CatalogSetCollection
'Usage
Dim instance As CatalogSetsContext
Dim returnValue As CatalogSetCollection

returnValue = instance.GetCatalogSets()
public CatalogSetCollection GetCatalogSets()
public:
CatalogSetCollection^ GetCatalogSets()
public function GetCatalogSets() : CatalogSetCollection

Return Value

Type: Microsoft.CommerceServer.CatalogSets..::.CatalogSetCollection
A CatalogSetCollection describing all of the catalog sets.

Remarks

Returns a collection describing all of the catalog sets.

Examples

// Returns a catalog set collection
internal CatalogSetCollection GetCatalogSets()
{
  CatalogSetCollection catalogSetCollection = this.catalogSetsContext.GetCatalogSets();
  foreach (CatalogSet catalogSet in catalogSetCollection)
  {
    Console.WriteLine(catalogSet.Name);
    Console.WriteLine(catalogSet.Description);
    Console.WriteLine(catalogSet.CatalogSetId);
  }
  return catalogSetCollection;
}

Permissions

See Also

Reference

CatalogSetsContext Class

CatalogSetsContext Members

Microsoft.CommerceServer.CatalogSets Namespace