Поделиться через


CatalogDefinitionsDataSet Class

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

The strongly typed DataSet that is used to access the Catalog Definitions in the Catalog system.

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

Syntax

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

Remarks

Returns the CatalogDefinitionsDataSet containing the Catalog Definitions values.

Examples

internal CatalogDefinitionsDataSet GetDefinitions()
{
  // You can filter the definitions by setting a searchClause. For eg searchClause = "DefinitionName like N'%Product%'"
  // You can use the CatalogDefinitionType overload to get all the Category definitions or ProductDefinitions
  CatalogDefinitionsDataSet definitions = catalogContext.GetDefinitions();
  foreach (CatalogDefinitionsDataSet.CatalogDefinition catalogDefinition in definitions.CatalogDefinitions)
  {
    Console.WriteLine(catalogDefinition.DefinitionName);
    Console.WriteLine(catalogDefinition.DefinitionType);
  }
  return definitions;
}

Inheritance Hierarchy

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

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

CatalogDefinitionsDataSet Members

Microsoft.CommerceServer.Catalog Namespace