Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.